#[repr(C)]pub struct RingSlot {
len: AtomicU16,
flags: AtomicU16,
data: [u8; 2048],
}Expand description
A single slot within the ring.
Fields§
§len: AtomicU16Length of data in this slot (0 = empty).
flags: AtomicU16Flags (bit 0 = SLOT_FLAG_COMMITTED; used in MPSC variants).
data: [u8; 2048]Payload bytes.
Implementations§
Auto Trait Implementations§
impl !Freeze for RingSlot
impl RefUnwindSafe for RingSlot
impl Send for RingSlot
impl Sync for RingSlot
impl Unpin for RingSlot
impl UnsafeUnpin for RingSlot
impl UnwindSafe for RingSlot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more