Skip to main content

Inode

Struct Inode 

Source
pub struct Inode {
Show 37 fields pub inode_type: InodeType, pub permissions: Vec<InodePermissions>, pub uid: u16, pub size: u64, pub accessed: i64, pub changed: i64, pub modified: i64, pub deleted: i32, pub gid: u16, pub hard_links: u16, pub blocks_count: u32, pub flags: Vec<InodeFlags>, pub direct_blocks: Vec<u32>, pub indirect_block: u32, pub double_indirect: u32, pub triple_indirect: u32, pub extents: Option<Extents>, pub file_entry: Vec<u8>, pub nfs: u32, pub acl_block: u32, pub upper_size: u32, pub fragment_offset: u32, pub upper_block_count: u16, pub upper_acl_block: u16, pub upper_uid: u16, pub upper_gid: u16, pub checksum: u16, pub extended_inode_size: u16, pub upper_checksum: u16, pub changed_precision: u32, pub modified_precision: u32, pub accessed_precision: u32, pub created: i64, pub created_precision: u32, pub extended_attributes: HashMap<String, String>, pub symoblic_link: String, pub is_sparse: bool,
}

Fields§

§inode_type: InodeType§permissions: Vec<InodePermissions>§uid: u16§size: u64§accessed: i64§changed: i64§modified: i64§deleted: i32§gid: u16§hard_links: u16§blocks_count: u32§flags: Vec<InodeFlags>§direct_blocks: Vec<u32>§indirect_block: u32§double_indirect: u32§triple_indirect: u32§extents: Option<Extents>§file_entry: Vec<u8>§nfs: u32§acl_block: u32§upper_size: u32§fragment_offset: u32§upper_block_count: u16§upper_acl_block: u16§upper_uid: u16§upper_gid: u16§checksum: u16§extended_inode_size: u16§upper_checksum: u16§changed_precision: u32§modified_precision: u32§accessed_precision: u32§created: i64§created_precision: u32§extended_attributes: HashMap<String, String>§symoblic_link: String§is_sparse: bool

Trait Implementations§

Source§

impl Debug for Inode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Inode

§

impl RefUnwindSafe for Inode

§

impl Send for Inode

§

impl Sync for Inode

§

impl Unpin for Inode

§

impl UnsafeUnpin for Inode

§

impl UnwindSafe for Inode

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.