#[repr(C, align(16))]pub struct BlockHeader {
pub size: AtomicU32,
pub state: AtomicU32,
pub prev_phys: AtomicU32,
pub next_free: AtomicU32,
pub prev_free: AtomicU32,
}Expand description
Header structure that is written at the beginning of each block/sector
The block is made entirely of atomic primitives to ensure safe reading and manipulation across participant modules in the matrix.
Fields§
§size: AtomicU32§state: AtomicU32§prev_phys: AtomicU32§next_free: AtomicU32§prev_free: AtomicU32Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BlockHeader
impl RefUnwindSafe for BlockHeader
impl Send for BlockHeader
impl Sync for BlockHeader
impl Unpin for BlockHeader
impl UnsafeUnpin for BlockHeader
impl UnwindSafe for BlockHeader
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