#[repr(C)]pub struct Slot {
pub next_free: IndexbusAtomicU32,
pub refcnt: IndexbusAtomicU32,
pub len: u32,
pub pad: u32,
pub data: [u8; 256],
}Expand description
Fixed-size message slot.
Slots are reference-counted and stored in shared memory; queues hold slot indices.
Fields§
§next_free: IndexbusAtomicU32Next slot in the free list (slot index), or crate::INDEXBUS_EMPTY_FREE_U32.
refcnt: IndexbusAtomicU32Reference count for shared ownership across queues/consumers.
len: u32Payload length in bytes.
pad: u32Padding (reserved).
data: [u8; 256]Payload storage.
Auto Trait Implementations§
impl !Freeze for Slot
impl !RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnwindSafe for Slot
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