pub enum InodeType<'img> {
Compact(&'img Inode<CompactInodeHeader>),
Extended(&'img Inode<ExtendedInodeHeader>),
}Expand description
Inode type enum allowing static dispatch for different header layouts
Variants§
Compact(&'img Inode<CompactInodeHeader>)
Compact inode with 32-byte header
Extended(&'img Inode<ExtendedInodeHeader>)
Extended inode with 64-byte header
Trait Implementations§
Source§impl InodeHeader for InodeType<'_>
impl InodeHeader for InodeType<'_>
Source§fn xattr_icount(&self) -> u16
fn xattr_icount(&self) -> u16
Returns the extended attribute inode count
Source§fn data_layout(&self) -> DataLayout
fn data_layout(&self) -> DataLayout
Returns the data layout method used by this inode
Source§fn additional_bytes(&self, blkszbits: u8) -> usize
fn additional_bytes(&self, blkszbits: u8) -> usize
Calculates the number of additional bytes after the header
Source§fn xattr_size(&self) -> usize
fn xattr_size(&self) -> usize
Calculates the size of the extended attributes section
Auto Trait Implementations§
impl<'img> Freeze for InodeType<'img>
impl<'img> RefUnwindSafe for InodeType<'img>
impl<'img> Send for InodeType<'img>
impl<'img> Sync for InodeType<'img>
impl<'img> Unpin for InodeType<'img>
impl<'img> UnwindSafe for InodeType<'img>
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