pub struct IntoStream<S> { /* private fields */ }Expand description
A Stream for the into_stream function.
Trait Implementations§
Source§impl<S> Debug for IntoStream<S>where
S: Debug,
impl<S> Debug for IntoStream<S>where
S: Debug,
Source§impl<S> FusedStream for IntoStream<S>where
S: FusedOrderedStream,
impl<S> FusedStream for IntoStream<S>where
S: FusedOrderedStream,
Source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true if the stream should no longer be polled.Source§impl<S> Stream for IntoStream<S>where
S: OrderedStream,
impl<S> Stream for IntoStream<S>where
S: OrderedStream,
Source§type Item = <S as OrderedStream>::Data
type Item = <S as OrderedStream>::Data
Values yielded by the stream.
Source§fn poll_next(
self: Pin<&mut IntoStream<S>>,
cx: &mut Context<'_>,
) -> Poll<Option<<IntoStream<S> as Stream>::Item>>
fn poll_next( self: Pin<&mut IntoStream<S>>, cx: &mut Context<'_>, ) -> Poll<Option<<IntoStream<S> as Stream>::Item>>
Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
None if the stream is exhausted. Read moreimpl<'__pin, S> Unpin for IntoStream<S>where
<PinnedFieldsOfHelperStruct<__Origin<'__pin, S>> as PinnedFieldsOfHelperTrait>::Actual: Unpin,
Auto Trait Implementations§
impl<S> Freeze for IntoStream<S>where
S: Freeze,
impl<S> RefUnwindSafe for IntoStream<S>where
S: RefUnwindSafe,
impl<S> Send for IntoStream<S>where
S: Send,
impl<S> Sync for IntoStream<S>where
S: Sync,
impl<S> UnsafeUnpin for IntoStream<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for IntoStream<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more