struct ChannelData {
queue: VecDeque<__HeapRoot<Slot<Gc<ObjectType<'static>>>>>,
capacity: usize,
sender_count: usize,
receiver_count: usize,
sender_closed: bool,
receiver_closed: bool,
}Expand description
Data for a single channel stored in the manager
Fields§
§queue: VecDeque<__HeapRoot<Slot<Gc<ObjectType<'static>>>>>Queue of objects rooted via HeapRoot
capacity: usizeMaximum capacity of the channel
sender_count: usizeNumber of active senders
receiver_count: usizeNumber of active receivers
sender_closed: boolWhether senders have been explicitly closed
receiver_closed: boolWhether receivers have been explicitly closed
Implementations§
Auto Trait Implementations§
impl Freeze for ChannelData
impl !RefUnwindSafe for ChannelData
impl Send for ChannelData
impl Sync for ChannelData
impl Unpin for ChannelData
impl !UnwindSafe for ChannelData
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