Struct futures_channel::mpsc::BoundedInner
source · struct BoundedInner<T> {
buffer: usize,
state: AtomicUsize,
message_queue: Queue<T>,
parked_queue: Queue<Arc<Mutex<SenderTask>>>,
num_senders: AtomicUsize,
recv_task: AtomicWaker,
}
Fields§
§buffer: usize
§state: AtomicUsize
§message_queue: Queue<T>
§parked_queue: Queue<Arc<Mutex<SenderTask>>>
§num_senders: AtomicUsize
§recv_task: AtomicWaker
Implementations§
source§impl<T> BoundedInner<T>
impl<T> BoundedInner<T>
fn max_senders(&self) -> usize
fn set_closed(&self)
Trait Implementations§
impl<T: Send> Send for BoundedInner<T>
impl<T: Send> Sync for BoundedInner<T>
Auto Trait Implementations§
impl<T> !Freeze for BoundedInner<T>
impl<T> !RefUnwindSafe for BoundedInner<T>
impl<T> Unpin for BoundedInner<T>
impl<T> UnwindSafe for BoundedInner<T>where
T: RefUnwindSafe,
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