pub struct RecvStream<T>(/* private fields */);Expand description
A stream which allows asynchronously receiving messages.
Can be created via Receiver::stream or Receiver::into_stream.
Implementations§
Source§impl<T> RecvStream<T>
impl<T> RecvStream<T>
Sourcepub fn is_closed(&self) -> bool
pub fn is_closed(&self) -> bool
See Receiver::is_closed.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
See Receiver::is_empty.
Sourcepub fn is_full(&self) -> bool
pub fn is_full(&self) -> bool
See Receiver::is_full.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
See Receiver::len.
Sourcepub fn capacity(&self) -> Option<usize>
pub fn capacity(&self) -> Option<usize>
See Receiver::capacity.
Sourcepub fn same_channel(&self, other: &Self) -> bool
pub fn same_channel(&self, other: &Self) -> bool
Returns whether the SendSinks are belong to the same channel.
Trait Implementations§
Source§impl<T> Clone for RecvStream<T>
impl<T> Clone for RecvStream<T>
Source§fn clone(&self) -> RecvStream<T>
fn clone(&self) -> RecvStream<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for RecvStream<T>
impl<T> Debug for RecvStream<T>
Source§impl<T> Stream for RecvStream<T>
impl<T> Stream for RecvStream<T>
Auto Trait Implementations§
impl<T> Freeze for RecvStream<T>
impl<T> RefUnwindSafe for RecvStream<T>
impl<T> Send for RecvStream<T>where
T: Send,
impl<T> Sync for RecvStream<T>where
T: Send,
impl<T> Unpin for RecvStream<T>
impl<T> UnwindSafe for RecvStream<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