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§
source§impl<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§
source§impl<T> AsMut<UnboundedReceiver<T>> for UnboundedReceiverStream<T>
impl<T> AsMut<UnboundedReceiver<T>> for UnboundedReceiverStream<T>
source§fn 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.
source§impl<T> AsRef<UnboundedReceiver<T>> for UnboundedReceiverStream<T>
impl<T> AsRef<UnboundedReceiver<T>> for UnboundedReceiverStream<T>
source§fn as_ref(&self) -> &UnboundedReceiver<T>
fn as_ref(&self) -> &UnboundedReceiver<T>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<T: Debug> Debug for UnboundedReceiverStream<T>
impl<T: Debug> Debug for UnboundedReceiverStream<T>
source§impl<T> From<UnboundedReceiver<T>> for UnboundedReceiverStream<T>
impl<T> From<UnboundedReceiver<T>> for UnboundedReceiverStream<T>
source§fn from(recv: UnboundedReceiver<T>) -> Self
fn from(recv: UnboundedReceiver<T>) -> Self
Converts to this type from the input type.