pub struct ChanView {
pub id: ChanId,
pub depth: usize,
pub capacity: Option<usize>,
pub blocked_senders: usize,
pub blocked_receivers: usize,
pub closed: bool,
}Expand description
A read-only view of one channel for Scheduler::snapshot.
Fields§
§id: ChanId§depth: usizeBuffered values waiting to be received.
capacity: Option<usize>None for an unbounded channel, Some(0) for a rendezvous channel.
blocked_senders: usize§blocked_receivers: usize§closed: boolTrait Implementations§
impl Copy for ChanView
impl Eq for ChanView
impl StructuralPartialEq for ChanView
Auto Trait Implementations§
impl Freeze for ChanView
impl RefUnwindSafe for ChanView
impl Send for ChanView
impl Sync for ChanView
impl Unpin for ChanView
impl UnsafeUnpin for ChanView
impl UnwindSafe for ChanView
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