Struct cdfs::ISODirectory

source ·
pub struct ISODirectory<T: ISO9660Reader> {
    pub identifier: String,
    /* private fields */
}
Expand description

DirectoryEntry for directories.

See Also

ISO-9660 / ECMA-119 § 9

Fields§

§identifier: String

The name encoded with UTF-8.

Implementations§

source§

impl<T: ISO9660Reader> ISODirectory<T>

source

pub fn block_count(&self) -> u32

Returns the number of BLOCK_SIZE byte blocks required to contain the directory entry.

source

pub fn read_entry_at( &self, block: &mut BlockBuffer, buf_block_num: &mut Option<u64>, offset: u64 ) -> Result<(DirectoryEntry<T>, Option<u64>)>

I’m pretty sure this doesn’t need to be public and IsoFuse should just use contents() instead.

source

pub fn contents(&self) -> ISODirectoryIterator<'_, T>

Returns a ISODirectoryIterator, akin to POSIX.1’s readdir.

source

pub fn find(&self, identifier: &str) -> Result<Option<DirectoryEntry<T>>>

Returns the DirectoryEntry of the matching child

Arguments
  • identifier - A valid path segment
Errors

Returns an error variant if there is an I/O error reading a directory entry. Returns Ok(None) if the path specified by identifer cannot be found.

source

pub fn find_recursive(&self, path: &str) -> Result<Option<DirectoryEntry<T>>>

Returns the DirectoryEntry matching the specified path. Similar to find but takes a full path and recurses through the descendants instead of a single path segment.

source

pub fn is_rock_ridge(&self) -> bool

Returns true if Rock Ridge extensions have been detected.

Trait Implementations§

source§

impl<T: ISO9660Reader> Clone for ISODirectory<T>

source§

fn clone(&self) -> ISODirectory<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: ISO9660Reader> Debug for ISODirectory<T>

source§

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

Formats the value using the given formatter. Read more
source§

impl<T: ISO9660Reader> ExtraAttributes for ISODirectory<T>

source§

fn ext(&self) -> &ExtraMeta

Returns the ExtraMeta attached to the current object. Generally not something to be called directly.
source§

fn header(&self) -> &DirectoryEntryHeader

Returns the DirectoryEntryHeader attached to the current object. Generally not something to be called directly.
source§

fn relocated(&self) -> bool

Returns true if this directory has been relocated elsewhere to circumvent ISO 9660’s limits on directory depth. Read more
source§

fn time(&self) -> OffsetDateTime

Returns the ISO 9660 “recording” timestamp. Read more
source§

fn owner(&self) -> Option<u32>

Returns the file owner’s user ID (st_uid), if available. Read more
source§

fn group(&self) -> Option<u32>

Returns the file owner’s group ID (st_gid), if available. Read more
source§

fn mode(&self) -> Option<PosixFileMode>

Returns the file protection mode / Unix permissions (a.k.a. st_mode), if available. Read more
source§

fn access_time(&self) -> OffsetDateTime

Returns the last time the file contents were accessed (st_atime), if available. If there is no access time available, the value of time() is returned. Read more
source§

fn attribute_change_time(&self) -> OffsetDateTime

Returns the last time the attributes were changed (st_ctime), if available. If there is no ctime available, the value of time() is returned. Read more
source§

fn backup_time(&self) -> OffsetDateTime

Returns the last backup time, if available. If there is no backup time available, the value of time() is returned. Read more
source§

fn create_time(&self) -> OffsetDateTime

Returns the creation time, if available. If there is no creation time available, the value of time() is returned. Read more
source§

fn effective_time(&self) -> OffsetDateTime

Returns the effective time, if available. If there is no expiration time available, the value of time() is returned. Read more
source§

fn expire_time(&self) -> OffsetDateTime

Returns the expiration time, if available. If there is no expiration time available, the value of time() is returned. Read more
source§

fn modify_time(&self) -> OffsetDateTime

Returns the last modification time (st_mtime), if available. If there is no modification time available, the value of time() is returned. Read more
source§

fn inode(&self) -> Option<u32>

Returns the serial number (a.k.a. inode), if available. Read more

Auto Trait Implementations§

§

impl<T> !RefUnwindSafe for ISODirectory<T>

§

impl<T> !Send for ISODirectory<T>

§

impl<T> !Sync for ISODirectory<T>

§

impl<T> Unpin for ISODirectory<T>

§

impl<T> !UnwindSafe for ISODirectory<T>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.