#[repr(C)]pub struct OptimizedRingEntry {
pub length: u16,
pub priority: u8,
pub flags: u8,
pub sequence: u32,
}Expand description
Optimized ring entry header (8 bytes).
Fields§
§length: u16Length of the payload in bytes.
priority: u8Message priority (0-3).
flags: u8Entry flags.
sequence: u32Sequence number for ordering.
Implementations§
Source§impl OptimizedRingEntry
impl OptimizedRingEntry
Sourcepub const HEADER_SIZE: usize = 8
pub const HEADER_SIZE: usize = 8
Size of the entry header.
Sourcepub const FLAG_DESCRIPTOR: u8
pub const FLAG_DESCRIPTOR: u8
Flag indicating this entry contains a descriptor.
Sourcepub const FLAG_VALID: u8
pub const FLAG_VALID: u8
Flag indicating entry is valid (ready to consume).
Sourcepub const fn new_inline(
length: u16,
priority: MsgPriority,
sequence: u32,
) -> Self
pub const fn new_inline( length: u16, priority: MsgPriority, sequence: u32, ) -> Self
Creates a new inline data entry.
Sourcepub const fn new_descriptor(priority: MsgPriority, sequence: u32) -> Self
pub const fn new_descriptor(priority: MsgPriority, sequence: u32) -> Self
Creates a new descriptor entry.
Sourcepub const fn is_descriptor(&self) -> bool
pub const fn is_descriptor(&self) -> bool
Returns true if this entry contains a descriptor.
Sourcepub fn priority(&self) -> MsgPriority
pub fn priority(&self) -> MsgPriority
Gets the priority as MsgPriority.
Trait Implementations§
Source§impl Clone for OptimizedRingEntry
impl Clone for OptimizedRingEntry
Source§fn clone(&self) -> OptimizedRingEntry
fn clone(&self) -> OptimizedRingEntry
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 moreSource§impl Debug for OptimizedRingEntry
impl Debug for OptimizedRingEntry
impl Copy for OptimizedRingEntry
Auto Trait Implementations§
impl Freeze for OptimizedRingEntry
impl RefUnwindSafe for OptimizedRingEntry
impl Send for OptimizedRingEntry
impl Sync for OptimizedRingEntry
impl Unpin for OptimizedRingEntry
impl UnsafeUnpin for OptimizedRingEntry
impl UnwindSafe for OptimizedRingEntry
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