pub struct TryAsyncStream<T, E, U> { /* private fields */ }
Expand description
A Stream
created from a fallible, asynchronous generator-like function.
To create a TryAsyncStream
, use the try_async_stream
function. See also crate::AsyncStream
.
Trait Implementations§
Source§impl<T, E, U> FusedStream for TryAsyncStream<T, E, U>
impl<T, E, U> FusedStream for TryAsyncStream<T, E, 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, E, U> Stream for TryAsyncStream<T, E, U>
impl<T, E, U> Stream for TryAsyncStream<T, E, U>
impl<'__pin, T, E, U> Unpin for TryAsyncStream<T, E, U>where
PinnedFieldsOf<__Origin<'__pin, T, E, U>>: Unpin,
Auto Trait Implementations§
impl<T, E, U> Freeze for TryAsyncStream<T, E, U>where
U: Freeze,
impl<T, E, U> !RefUnwindSafe for TryAsyncStream<T, E, U>
impl<T, E, U> Send for TryAsyncStream<T, E, U>
impl<T, E, U> Sync for TryAsyncStream<T, E, U>
impl<T, E, U> !UnwindSafe for TryAsyncStream<T, E, 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