struct Slot<T> {
msg: UnsafeCell<MaybeUninit<T>>,
state: AtomicUsize,
}
Expand description
A slot in a block.
Fields§
§msg: UnsafeCell<MaybeUninit<T>>
The message.
state: AtomicUsize
The state of the slot.
Implementations§
source§impl<T> Slot<T>
impl<T> Slot<T>
sourcefn wait_write(&self)
fn wait_write(&self)
Waits until a message is written into the slot.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Slot<T>
impl<T> Send for Slot<T>where T: Send,
impl<T> !Sync for Slot<T>
impl<T> Unpin for Slot<T>where T: Unpin,
impl<T> UnwindSafe for Slot<T>where T: UnwindSafe,
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