pub struct DiskKey {
pub objectid: u64,
pub key_type: u8,
pub offset: u64,
}Expand description
A btrfs_disk_key — the (objectid, type, offset) tuple every btrfs item is
keyed by. Fields are LE on disk; compared as host integers on the tuple
(that ordering is P2’s concern; P0 just carries the decoded values).
Fields§
§objectid: u64objectid — for a sys chunk item this is FIRST_CHUNK_TREE_OBJECTID
(256).
key_type: u8type — the item-type byte (228 = CHUNK_ITEM for a sys chunk entry).
offset: u64offset — for a chunk item this is the chunk’s logical start address.
Implementations§
Trait Implementations§
impl Copy for DiskKey
impl Eq for DiskKey
impl StructuralPartialEq for DiskKey
Auto Trait Implementations§
impl Freeze for DiskKey
impl RefUnwindSafe for DiskKey
impl Send for DiskKey
impl Sync for DiskKey
impl Unpin for DiskKey
impl UnsafeUnpin for DiskKey
impl UnwindSafe for DiskKey
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