pub struct SyncReceiver<T, const CAPACITY: usize = 0> { /* private fields */ }Implementations§
Source§impl<T, const CAPACITY: usize> SyncReceiver<T, CAPACITY>
impl<T, const CAPACITY: usize> SyncReceiver<T, CAPACITY>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_full(&self) -> bool
pub fn capacity(&self) -> usize
pub fn receiver_count(&self) -> usize
pub fn sender_count(&self) -> usize
pub fn close(&self) -> Result<(), CloseError>
pub fn is_closed(&self) -> bool
pub fn as_async(&self) -> &Receiver<T, CAPACITY>
pub fn to_async(self) -> Sender<T, CAPACITY>
pub fn recv(&self) -> Result<T, ReceiveError>
pub fn try_recv(&self) -> Result<T, ReceiveErrorTimeout>
pub fn try_recv_realtime(&self) -> Result<T, ReceiveErrorTimeout>
pub fn is_disconnected(&self) -> bool
Trait Implementations§
Source§impl<T, const CAPACITY: usize> Clone for SyncReceiver<T, CAPACITY>
impl<T, const CAPACITY: usize> Clone for SyncReceiver<T, CAPACITY>
Auto Trait Implementations§
impl<T, const CAPACITY: usize> Freeze for SyncReceiver<T, CAPACITY>
impl<T, const CAPACITY: usize = 0> !RefUnwindSafe for SyncReceiver<T, CAPACITY>
impl<T, const CAPACITY: usize> Send for SyncReceiver<T, CAPACITY>where
T: Send,
impl<T, const CAPACITY: usize> Sync for SyncReceiver<T, CAPACITY>where
T: Send,
impl<T, const CAPACITY: usize> Unpin for SyncReceiver<T, CAPACITY>
impl<T, const CAPACITY: usize = 0> !UnwindSafe for SyncReceiver<T, CAPACITY>
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