pub struct UnifiedReceiver<T> { /* private fields */ }Expand description
Receiver half of a unified channel
Implementations§
Source§impl<T> UnifiedReceiver<T>
impl<T> UnifiedReceiver<T>
Sourcepub fn recv(&self) -> Result<T, ChannelError>
pub fn recv(&self) -> Result<T, ChannelError>
Receive a message (non-blocking; returns Err(Empty) when none is available).
Sourcepub fn try_recv(&self) -> Result<T, ChannelError>
pub fn try_recv(&self) -> Result<T, ChannelError>
Try to receive without blocking.
Identical to Self::recv — this channel has no blocking receive
path. Retained for consumers written against the try_recv name.
Sourcepub fn recv_batch(&self, max_count: usize) -> Vec<T>
pub fn recv_batch(&self, max_count: usize) -> Vec<T>
Receive batch of messages
Sourcepub fn stats(&self) -> ChannelStatistics
pub fn stats(&self) -> ChannelStatistics
Get channel statistics
Trait Implementations§
Source§impl<T> Clone for UnifiedReceiver<T>
impl<T> Clone for UnifiedReceiver<T>
Source§fn clone(&self) -> UnifiedReceiver<T>
fn clone(&self) -> UnifiedReceiver<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T> Send for UnifiedReceiver<T>where
T: Send,
impl<T> Sync for UnifiedReceiver<T>where
T: Send,
Auto Trait Implementations§
impl<T> !RefUnwindSafe for UnifiedReceiver<T>
impl<T> !UnwindSafe for UnifiedReceiver<T>
impl<T> Freeze for UnifiedReceiver<T>
impl<T> Unpin for UnifiedReceiver<T>
impl<T> UnsafeUnpin for UnifiedReceiver<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