#[repr(C, packed)]
pub struct Header { pub csum: [u8; 32], pub fs_uuid: UuidBytes, pub logical_address: U64<LE>, pub flags: [u8; 7], pub backref_rev: u8, pub chunk_tree_uuid: UuidBytes, pub generation: U64<LE>, pub tree_id: U64<LE>, pub num_items: U32<LE>, pub level: u8, }
Expand description

The data stored at the start of every node.

Fields

csum: [u8; 32]

The checksum of everything after this field, including the internal/leaf node specific part.

fs_uuid: UuidBytes

The filesystem UUID.

logical_address: U64<LE>

The logical address of this node.

flags: [u8; 7]

The first 7 bits represent flags.

backref_rev: u8

The backref revision, which maps to a BackrefRevision value.

chunk_tree_uuid: UuidBytes

The chunk tree UUID.

generation: U64<LE>

The generation of this node.

tree_id: U64<LE>

The ID of the tree containing this node.

num_items: U32<LE>

The number of items held in this node.

level: u8

The level of this node. 0 indicates it is a leaf node.

Trait Implementations

Get the bytes of this value. Read more
Get the bytes of this value mutably. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.