struct Slot<T> {
    stamp: AtomicUsize,
    msg: UnsafeCell<MaybeUninit<T>>,
}Expand description
A slot in a channel.
Fields§
§stamp: AtomicUsizeThe current stamp.
msg: UnsafeCell<MaybeUninit<T>>The message in this slot.
Auto Trait Implementations§
impl<T> !Freeze for Slot<T>
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