ExtFileEntry

Struct ExtFileEntry 

Source
pub struct ExtFileEntry {
    pub inode_number: u32,
    /* private fields */
}
Expand description

Extended File System (ext) file entry.

Fields§

§inode_number: u32

The inode number.

Implementations§

Source§

impl ExtFileEntry

Source

pub fn get_access_time(&self) -> Option<&DateTime>

Retrieves the access time.

Source

pub fn get_change_time(&self) -> Option<&DateTime>

Retrieves the change time.

Source

pub fn get_creation_time(&self) -> Option<&DateTime>

Retrieves the creation time.

Source

pub fn get_deletion_time(&self) -> &DateTime

Retrieves the deletion time.

Source

pub fn get_device_identifier(&mut self) -> Result<Option<u16>, ErrorTrace>

Retrieves the device identifier.

Source

pub fn get_file_mode(&self) -> u16

Retrieves the file mode.

Source

pub fn get_group_identifier(&self) -> u32

Retrieves the group identifier.

Source

pub fn get_modification_time(&self) -> Option<&DateTime>

Retrieves the modification time.

Source

pub fn get_name(&self) -> Option<&ByteString>

Retrieves the name.

Retrieves the number of links.

Source

pub fn get_owner_identifier(&self) -> u32

Retrieves the owner identifier.

Source

pub fn get_size(&self) -> u64

Retrieves the size.

Retrieves the symbolic link target.

Source

pub fn get_number_of_attributes(&mut self) -> Result<usize, ErrorTrace>

Retrieves the number of attributes.

Source

pub fn get_data_stream(&self) -> Result<Option<DataStreamReference>, ErrorTrace>

Retrieves the default data stream.

Source

pub fn get_number_of_sub_file_entries(&mut self) -> Result<usize, ErrorTrace>

Retrieves the number of sub file entries.

Source

pub fn get_sub_file_entry_by_index( &mut self, sub_file_entry_index: usize, ) -> Result<ExtFileEntry, ErrorTrace>

Retrieves a specific sub file entry.

Source

pub fn get_sub_file_entry_by_name( &mut self, sub_file_entry_name: &ByteString, ) -> Result<Option<ExtFileEntry>, ErrorTrace>

Retrieves a specific sub file entry.

Source

pub fn is_root_directory(&self) -> bool

Determines if the file entry is the root directory.

Auto Trait Implementations§

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, 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.