#[non_exhaustive]pub struct FileExtent {
pub logical_offset: u64,
pub len: u64,
pub phys_block_num: u64,
pub crypto_id: u64,
}Expand description
One file extent (a j_file_extent_val_t plus its logical offset).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.logical_offset: u64Logical offset within the file (from the record key).
len: u64Length in bytes (len_and_flags & J_FILE_EXTENT_LEN_MASK).
phys_block_num: u64Starting physical block (0 = sparse hole).
crypto_id: u64crypto_id — the AES-XTS tweak of this extent’s first block on an
encrypted volume. Zero means the data is not encrypted.
Trait Implementations§
Source§impl Clone for FileExtent
impl Clone for FileExtent
impl Copy for FileExtent
Auto Trait Implementations§
impl Forget for FileExtent
impl Freeze for FileExtent
impl Move for FileExtent
impl RefUnwindSafe for FileExtent
impl Send for FileExtent
impl Sync for FileExtent
impl Unpin for FileExtent
impl UnsafeUnpin for FileExtent
impl UnwindSafe for FileExtent
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