forked from mirror/async-std
add unstable cfg to FromStream/IntoStream
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
parent
cb7f3dd376
commit
e6a3160c8b
2 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@ use std::pin::Pin;
|
|||
/// See also: [`IntoStream`].
|
||||
///
|
||||
/// [`IntoStream`]: trait.IntoStream.html
|
||||
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
||||
pub trait FromStream<T: Send> {
|
||||
/// Creates a value from a stream.
|
||||
///
|
||||
|
|
|
@ -13,6 +13,7 @@ use futures_core::stream::Stream;
|
|||
/// See also: [`FromStream`].
|
||||
///
|
||||
/// [`FromStream`]: trait.FromStream.html
|
||||
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
||||
pub trait IntoStream {
|
||||
/// The type of the elements being iterated over.
|
||||
type Item;
|
||||
|
|
Loading…
Reference in a new issue