pub struct AsyncStream<T, U> { /* private fields */ }
Expand description
A Stream
created from an asynchronous generator-like function.
To create an AsyncStream
, use the async_stream
function.
Trait Implementations§
Source§impl<T, U> FusedStream for AsyncStream<T, U>
impl<T, U> FusedStream for AsyncStream<T, U>
Source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the stream should no longer be polled.Source§impl<T, U> Stream for AsyncStream<T, U>
impl<T, U> Stream for AsyncStream<T, U>
impl<'__pin, T, U> Unpin for AsyncStream<T, U>where
PinnedFieldsOf<__Origin<'__pin, T, U>>: Unpin,
Auto Trait Implementations§
impl<T, U> Freeze for AsyncStream<T, U>where
U: Freeze,
impl<T, U> !RefUnwindSafe for AsyncStream<T, U>
impl<T, U> Send for AsyncStream<T, U>
impl<T, U> Sync for AsyncStream<T, U>
impl<T, U> !UnwindSafe for AsyncStream<T, U>
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