Struct flume::async::RecvStream
source · pub struct RecvStream<'a, 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<'a, T> RecvStream<'a, T>
impl<'a, T> RecvStream<'a, T>
sourcepub fn is_disconnected(&self) -> bool
pub fn is_disconnected(&self) -> bool
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<'a, T> Clone for RecvStream<'a, T>
impl<'a, T> Clone for RecvStream<'a, T>
source§fn clone(&self) -> RecvStream<'a, T>
fn clone(&self) -> RecvStream<'a, T>
Returns a copy 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<'a, T> Debug for RecvStream<'a, T>
impl<'a, T> Debug for RecvStream<'a, T>
source§impl<'a, T> FusedStream for RecvStream<'a, T>
impl<'a, T> FusedStream for RecvStream<'a, T>
source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the stream should no longer be polled.source§impl<'a, T> Stream for RecvStream<'a, T>
impl<'a, T> Stream for RecvStream<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for RecvStream<'a, T>
impl<'a, T> !RefUnwindSafe for RecvStream<'a, T>
impl<'a, T> Send for RecvStream<'a, T>where
T: Send,
impl<'a, T> Sync for RecvStream<'a, T>where
T: Send,
impl<'a, T> Unpin for RecvStream<'a, T>
impl<'a, T> !UnwindSafe for RecvStream<'a, 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)