#[repr(C, align(64))]pub struct SegmentMeta {
pub segment_id: IndexbusAtomicU32,
pub segment_len: IndexbusAtomicU32,
pub tail: IndexbusAtomicU64,
pub pad_to_64: [u8; 48],
}Expand description
Journal segment metadata for one journal segment.
Kept 64B-aligned so per-segment metadata can be read without false sharing.
Fields§
§segment_id: IndexbusAtomicU32Segment identifier (implementation-defined).
segment_len: IndexbusAtomicU32Segment length in bytes.
tail: IndexbusAtomicU64Tail cursor within the segment.
pad_to_64: [u8; 48]Padding to keep segment metadata in a cache line.
Auto Trait Implementations§
impl !Freeze for SegmentMeta
impl !RefUnwindSafe for SegmentMeta
impl Send for SegmentMeta
impl Sync for SegmentMeta
impl Unpin for SegmentMeta
impl UnwindSafe for SegmentMeta
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