struct ChannelState {
data: Mutex<ChannelData>,
not_full: Condvar,
not_empty: Condvar,
}Expand description
State for a single channel, with synchronization
Fields§
§data: Mutex<ChannelData>§not_full: CondvarCondvar to wake senders waiting for space
not_empty: CondvarCondvar to wake receivers waiting for data
Implementations§
Auto Trait Implementations§
impl !Freeze for ChannelState
impl RefUnwindSafe for ChannelState
impl Send for ChannelState
impl Sync for ChannelState
impl Unpin for ChannelState
impl UnwindSafe for ChannelState
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