Struct tokio_stream::wrappers::UnboundedReceiverStream
source · [−]pub struct UnboundedReceiverStream<T> { /* private fields */ }
Expand description
A wrapper around tokio::sync::mpsc::UnboundedReceiver
that implements Stream
.
Implementations
sourceimpl<T> UnboundedReceiverStream<T>
impl<T> UnboundedReceiverStream<T>
sourcepub fn new(recv: UnboundedReceiver<T>) -> Self
pub fn new(recv: UnboundedReceiver<T>) -> Self
Create a new UnboundedReceiverStream
.
sourcepub fn into_inner(self) -> UnboundedReceiver<T>
pub fn into_inner(self) -> UnboundedReceiver<T>
Get back the inner UnboundedReceiver
.
Trait Implementations
sourceimpl<T> AsMut<UnboundedReceiver<T>> for UnboundedReceiverStream<T>
impl<T> AsMut<UnboundedReceiver<T>> for UnboundedReceiverStream<T>
sourcefn as_mut(&mut self) -> &mut UnboundedReceiver<T>
fn as_mut(&mut self) -> &mut UnboundedReceiver<T>
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl<T> AsRef<UnboundedReceiver<T>> for UnboundedReceiverStream<T>
impl<T> AsRef<UnboundedReceiver<T>> for UnboundedReceiverStream<T>
sourcefn as_ref(&self) -> &UnboundedReceiver<T>
fn as_ref(&self) -> &UnboundedReceiver<T>
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl<T: Debug> Debug for UnboundedReceiverStream<T>
impl<T: Debug> Debug for UnboundedReceiverStream<T>
sourceimpl<T> From<UnboundedReceiver<T>> for UnboundedReceiverStream<T>
impl<T> From<UnboundedReceiver<T>> for UnboundedReceiverStream<T>
sourcefn from(recv: UnboundedReceiver<T>) -> Self
fn from(recv: UnboundedReceiver<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> Stream for UnboundedReceiverStream<T>
impl<T> Stream for UnboundedReceiverStream<T>
type Item = T
type Item = T
Values yielded by the stream.
Auto Trait Implementations
impl<T> !RefUnwindSafe for UnboundedReceiverStream<T>
impl<T> Send for UnboundedReceiverStream<T>where
T: Send,
impl<T> Sync for UnboundedReceiverStream<T>where
T: Send,
impl<T> Unpin for UnboundedReceiverStream<T>
impl<T> !UnwindSafe for UnboundedReceiverStream<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more