struct Slot<T> {
stamp: AtomicUsize,
msg: UnsafeCell<MaybeUninit<T>>,
}
Expand description
A slot in a channel.
Fields§
§stamp: AtomicUsize
The current stamp.
msg: UnsafeCell<MaybeUninit<T>>
The message in this slot. Either read out in read
or dropped through
discard_all_messages
.
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