Struct cdfs::ISODirectory
source · pub struct ISODirectory<T: ISO9660Reader> {
pub identifier: String,
/* private fields */
}
Expand description
Fields§
§identifier: String
The name encoded with UTF-8.
Implementations§
source§impl<T: ISO9660Reader> ISODirectory<T>
impl<T: ISO9660Reader> ISODirectory<T>
sourcepub fn block_count(&self) -> u32
pub fn block_count(&self) -> u32
Returns the number of BLOCK_SIZE
byte blocks required to contain the directory entry.
sourcepub fn read_entry_at(
&self,
block: &mut BlockBuffer,
buf_block_num: &mut Option<u64>,
offset: u64
) -> Result<(DirectoryEntry<T>, Option<u64>)>
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.
sourcepub fn contents(&self) -> ISODirectoryIterator<'_, T> ⓘ
pub fn contents(&self) -> ISODirectoryIterator<'_, T> ⓘ
Returns a ISODirectoryIterator
, akin to POSIX.1’s readdir
.
sourcepub fn find(&self, identifier: &str) -> Result<Option<DirectoryEntry<T>>>
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.
sourcepub fn find_recursive(&self, path: &str) -> Result<Option<DirectoryEntry<T>>>
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.
sourcepub fn is_rock_ridge(&self) -> bool
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>
impl<T: ISO9660Reader> Clone for ISODirectory<T>
source§fn clone(&self) -> ISODirectory<T>
fn clone(&self) -> ISODirectory<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: ISO9660Reader> Debug for ISODirectory<T>
impl<T: ISO9660Reader> Debug for ISODirectory<T>
source§impl<T: ISO9660Reader> ExtraAttributes for ISODirectory<T>
impl<T: ISO9660Reader> ExtraAttributes for ISODirectory<T>
source§fn ext(&self) -> &ExtraMeta
fn ext(&self) -> &ExtraMeta
Returns the
ExtraMeta
attached to the current object. Generally not something to be called directly.source§fn header(&self) -> &DirectoryEntryHeader
fn header(&self) -> &DirectoryEntryHeader
Returns the
DirectoryEntryHeader
attached to the current object. Generally not something to be called directly.source§fn relocated(&self) -> bool
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
fn time(&self) -> OffsetDateTime
Returns the ISO 9660 “recording” timestamp. Read more
source§fn owner(&self) -> Option<u32>
fn owner(&self) -> Option<u32>
Returns the file owner’s user ID (
st_uid
), if available. Read moresource§fn group(&self) -> Option<u32>
fn group(&self) -> Option<u32>
Returns the file owner’s group ID (
st_gid
), if available. Read moresource§fn mode(&self) -> Option<PosixFileMode>
fn mode(&self) -> Option<PosixFileMode>
Returns the file protection mode / Unix permissions (a.k.a.
st_mode
), if available. Read moresource§fn access_time(&self) -> OffsetDateTime
fn access_time(&self) -> OffsetDateTime
source§fn attribute_change_time(&self) -> OffsetDateTime
fn attribute_change_time(&self) -> OffsetDateTime
source§fn backup_time(&self) -> OffsetDateTime
fn backup_time(&self) -> OffsetDateTime
source§fn create_time(&self) -> OffsetDateTime
fn create_time(&self) -> OffsetDateTime
source§fn effective_time(&self) -> OffsetDateTime
fn effective_time(&self) -> OffsetDateTime
source§fn expire_time(&self) -> OffsetDateTime
fn expire_time(&self) -> OffsetDateTime
source§fn modify_time(&self) -> OffsetDateTime
fn modify_time(&self) -> OffsetDateTime
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> 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