#[repr(C, align(64))]pub struct OptimizedRingSlot {
pub entry: OptimizedRingEntry,
pub payload: [u8; 56],
}Expand description
Cache-line aligned ring slot.
Each slot contains the entry header and inline payload data. Aligned to cache line for single cache line access per operation.
Fields§
§entry: OptimizedRingEntryEntry header.
payload: [u8; 56]Inline payload data (56 bytes max for 64-byte slot).
Implementations§
Source§impl OptimizedRingSlot
impl OptimizedRingSlot
Sourcepub const MAX_INLINE_SIZE: usize = 56
pub const MAX_INLINE_SIZE: usize = 56
Maximum inline payload size.
Trait Implementations§
Source§impl Clone for OptimizedRingSlot
impl Clone for OptimizedRingSlot
Source§fn clone(&self) -> OptimizedRingSlot
fn clone(&self) -> OptimizedRingSlot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptimizedRingSlot
Auto Trait Implementations§
impl Freeze for OptimizedRingSlot
impl RefUnwindSafe for OptimizedRingSlot
impl Send for OptimizedRingSlot
impl Sync for OptimizedRingSlot
impl Unpin for OptimizedRingSlot
impl UnsafeUnpin for OptimizedRingSlot
impl UnwindSafe for OptimizedRingSlot
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