pub struct ReceiveStream<T> { /* private fields */ }Expand description
A receiver for the memory stream.
Implementations§
Source§impl<T: Send + 'static> ReceiveStream<T>
impl<T: Send + 'static> ReceiveStream<T>
Sourcepub fn into_stream(self) -> impl Stream<Item = T>
pub fn into_stream(self) -> impl Stream<Item = T>
Create an async iterator over the stream.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ReceiveStream<T>
impl<T> !RefUnwindSafe for ReceiveStream<T>
impl<T> Send for ReceiveStream<T>where
T: Send,
impl<T> Sync for ReceiveStream<T>where
T: Send,
impl<T> Unpin for ReceiveStream<T>
impl<T> !UnwindSafe for ReceiveStream<T>
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