Struct Slot
pub(in ::sync::mpmc::list) struct Slot<T> { pub(in ::sync::mpmc::list) msg: UnsafeCell<MaybeUninit<T>>, pub(in ::sync::mpmc::list) state: Atomic<usize> }
A slot in a block.
Fields
msg: UnsafeCell<MaybeUninit<T>>The message.
state: Atomic<usize>The state of the slot.
Implementations
impl<T> Slot<T>
fn wait_write(&self)Waits until a message is written into the slot.
Auto Trait Implementations
impl<T> !Freeze for Slot<T>
impl<T> !RefUnwindSafe for Slot<T>
impl<T> !Sync for Slot<T>
impl<T> Send for Slot<T>
where
UnsafeCell<MaybeUninit<T>>: Send,
impl<T> Unpin for Slot<T>
where
UnsafeCell<MaybeUninit<T>>: Unpin,
impl<T> UnsafeUnpin for Slot<T>
where
UnsafeCell<MaybeUninit<T>>: UnsafeUnpin,
impl<T> UnwindSafe for Slot<T>
where
UnsafeCell<MaybeUninit<T>>: UnwindSafe,
Blanket Implementations
impl<T> Any for Slot<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Slot<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Slot<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Slot<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Slot<T>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Slot<T>
impl<T, U> Into<U> for Slot<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Slot<T>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Slot<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>