Struct btrfs_diskformat::Header [−][src]
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
impl AsBytes for Header
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn as_bytes_mut(&mut self) -> &mut [u8] where
Self: FromBytes,
[src]
Self: FromBytes,
impl Clone for Header
[src]
impl Debug for Header
[src]
impl FromBytes for Header
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
impl Unaligned for Header
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,