pub struct ChannelShared<T> { /* private fields */ }Implementations§
Sourcepub fn capacity(&self) -> Option<usize>
pub fn capacity(&self) -> Option<usize>
The capacity of the channel. Returns None for unbounded channels.
Sourcepub fn is_disconnected(&self) -> bool
pub fn is_disconnected(&self) -> bool
Returns true if all senders or receivers have been dropped.
Sourcepub fn get_tx_count(&self) -> usize
pub fn get_tx_count(&self) -> usize
Returns the number of senders for the channel.
Sourcepub fn get_rx_count(&self) -> usize
pub fn get_rx_count(&self) -> usize
Returns the number of receivers for the channel.
Sourcepub fn get_wakers_count(&self) -> (usize, usize)
pub fn get_wakers_count(&self) -> (usize, usize)
Returns the number of wakers for senders and receivers. For debugging purposes.
Trait Implementations§
Source§fn as_ref(&self) -> &ChannelShared<T>
fn as_ref(&self) -> &ChannelShared<T>
Converts this type into a shared reference of the (usually inferred) input type.
Source§fn as_ref(&self) -> &ChannelShared<T>
fn as_ref(&self) -> &ChannelShared<T>
Converts this type into a shared reference of the (usually inferred) input type.
Source§fn as_ref(&self) -> &ChannelShared<T>
fn as_ref(&self) -> &ChannelShared<T>
Converts this type into a shared reference of the (usually inferred) input type.
Source§fn as_ref(&self) -> &ChannelShared<T>
fn as_ref(&self) -> &ChannelShared<T>
Converts this type into a shared reference of the (usually inferred) input type.
Source§fn as_ref(&self) -> &ChannelShared<T>
fn as_ref(&self) -> &ChannelShared<T>
Converts this type into a shared reference of the (usually inferred) input type.
Source§fn as_ref(&self) -> &ChannelShared<T>
fn as_ref(&self) -> &ChannelShared<T>
Converts this type into a shared reference of the (usually inferred) input type.
Source§fn as_ref(&self) -> &ChannelShared<T>
fn as_ref(&self) -> &ChannelShared<T>
Converts this type into a shared reference of the (usually inferred) input type.
Source§fn as_ref(&self) -> &ChannelShared<T>
fn as_ref(&self) -> &ChannelShared<T>
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
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