pub struct ChannelInner {
pub queue: Mutex<ChannelState>,
pub not_empty: Condvar,
pub not_full: Condvar,
pub capacity: usize,
pub waiters: Mutex<Vec<Wake>>,
}Fields§
§queue: Mutex<ChannelState>§not_empty: Condvar§not_full: Condvar§capacity: usize§waiters: Mutex<Vec<Wake>>Wakers of fibers waiting to send or receive; all are woken on any change. Registered
while holding queue, so a change made after the check cannot be missed.
Implementations§
Source§impl ChannelInner
impl ChannelInner
Sourcepub fn wake_fibers(&self)
pub fn wake_fibers(&self)
Wakes every fiber waiting on the channel.
Auto Trait Implementations§
impl !Freeze for ChannelInner
impl !RefUnwindSafe for ChannelInner
impl !UnwindSafe for ChannelInner
impl Send for ChannelInner
impl Sync for ChannelInner
impl Unpin for ChannelInner
impl UnsafeUnpin for ChannelInner
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