Struct btrfs_no_std::DevExtent
source · [−]#[repr(C, packed)]pub struct DevExtent {
pub chunk_tree: U64<LE>,
pub chunk_objectid: U64<LE>,
pub chunk_offset: U64<LE>,
pub length: U64<LE>,
pub chunk_tree_uuid: UuidBytes,
}
Expand description
Maps physical extents on an individual backing device to a chunk. This extent may be the only one for a particular chunk or one of several.
It is associated with the DEV_ITEM
item. This structure is never used
outside of this item.
Fields
chunk_tree: U64<LE>
The object ID of the chunk tree that owns this extent.
chunk_objectid: U64<LE>
The object ID of the chunk item that references this extent.
chunk_offset: U64<LE>
The offset of the chunk item that references this extent.
length: U64<LE>
The length of this extent, in bytes.
chunk_tree_uuid: UuidBytes
The UUID of the chunk tree that owns this extent.
Trait Implementations
sourceimpl AsBytes for DevExtent
impl AsBytes for DevExtent
sourcefn as_bytes_mut(&mut self) -> &mut [u8] where
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
sourcefn write_to<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
fn write_to<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
Writes a copy of self
to bytes
. Read more
sourcefn write_to_prefix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
Writes a copy of self
to the prefix of bytes
. Read more
sourcefn write_to_suffix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()> where
B: ByteSliceMut,
Writes a copy of self
to the suffix of bytes
. Read more
sourceimpl FromBytes for DevExtent
impl FromBytes for DevExtent
sourcefn read_from<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
fn read_from<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
Reads a copy of Self
from bytes
. Read more
sourcefn read_from_prefix<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
fn read_from_prefix<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
Reads a copy of Self
from the prefix of bytes
. Read more
sourcefn read_from_suffix<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
fn read_from_suffix<B>(bytes: B) -> Option<Self> where
B: ByteSlice,
Reads a copy of Self
from the suffix of bytes
. Read more
sourcefn new_zeroed() -> Self
fn new_zeroed() -> Self
Creates an instance of Self
from zeroed bytes.
impl Unaligned for DevExtent
Auto Trait Implementations
impl RefUnwindSafe for DevExtent
impl Send for DevExtent
impl Sync for DevExtent
impl Unpin for DevExtent
impl UnwindSafe for DevExtent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more