Skip to main content

ExtFileEntry

Struct ExtFileEntry 

Source
pub struct ExtFileEntry { /* private fields */ }
Expand description

Extended File System (ext) file entry.

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(&self) -> Option<&u16>

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_inode_number(&self) -> u32

Retrieves the inode number.

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_data_stream( &mut self, ) -> Result<Option<DataStreamReference>, ErrorTrace>

Retrieves the default data stream.

Source

pub fn get_extended_attribute_by_name( &mut self, extended_attribute_name: &PathComponent, ) -> Result<Option<ExtExtendedAttribute>, ErrorTrace>

Retrieves a specific extended attribute.

Source

pub fn extended_attributes( &mut self, ) -> ExtendedAttributesIterator<'_, ExtFileEntry> ⓘ

Retrieves an extended attributes iterator.

Source

pub fn sub_file_entries(&mut self) -> FileEntriesIterator<'_, ExtFileEntry> ⓘ

Retrieves a sub file entries iterator.

Source

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

Retrieves a specific sub file entry.

Source

pub fn is_directory(&self) -> bool

Determines if the file entry is a directory.

Source

pub fn is_root_directory(&self) -> bool

Determines if the file entry is the root directory.

Trait Implementations§

Source§

impl ExtendedAttributeIterator for ExtFileEntry

Source§

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

Retrieves the number of extended attributes.

Source§

fn get_extended_attribute_by_index( &mut self, extended_attribute_index: usize, ) -> Result<Self::ExtendedAttributeItem, ErrorTrace>

Retrieves a specific extended attribute.

Source§

type ExtendedAttributeItem = ExtExtendedAttribute

Extended attribute item.
Source§

impl FileEntryIterator for ExtFileEntry

Source§

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

Retrieves the number of sub file entries.

Source§

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

Retrieves a specific sub file entry.

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.