pub enum DirectoryEntry<T: ISO9660Reader> {
Directory(ISODirectory<T>),
File(ISOFile<T>),
Symlink(Symlink),
}
Expand description
An entry inside of a directory on the filesystem. Returned by the ISODirectoryIterator
iterator.
§Notes
ISO 9660 / ECMA-119 define other common unix types such as sockets, pipes, and devices. Currently only regular files, directories, and symbolic links are supported.
Variants§
Directory(ISODirectory<T>)
Directory entry.
File(ISOFile<T>)
Regular file entry.
Symlink(Symlink)
Symbolic link entry.
Implementations§
Source§impl<T: ISO9660Reader> DirectoryEntry<T>
impl<T: ISO9660Reader> DirectoryEntry<T>
Sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
Returns the name of the current DirectoryEntry
.
§Notes
ISO-9660 / ECMA-119 specify various restrictions on what characters are allowed in an
identifier, and how long they can be. Joliet specifies UTF-16BE encoding for its
alternative directory hierarchies. Finally, in Rust String
s use UTF-8. The way this
works in practice is that we’re okay with identifiers that are UTF-8 or a subset thereof,
unless a character encoding is explicitly specified (e.g. Joliet). If UTF-16 is specified,
it is assumed to be big endian.
Trait Implementations§
Source§impl<T: Clone + ISO9660Reader> Clone for DirectoryEntry<T>
impl<T: Clone + ISO9660Reader> Clone for DirectoryEntry<T>
Source§fn clone(&self) -> DirectoryEntry<T>
fn clone(&self) -> DirectoryEntry<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<T: ISO9660Reader> Debug for DirectoryEntry<T>
impl<T: ISO9660Reader> Debug for DirectoryEntry<T>
Source§impl<T: ISO9660Reader> ExtraAttributes for DirectoryEntry<T>
impl<T: ISO9660Reader> ExtraAttributes for DirectoryEntry<T>
Source§fn ext(&self) -> &ExtraMeta
fn ext(&self) -> &ExtraMeta
ExtraMeta
attached to the current object. Generally not something to be called directly.Source§fn header(&self) -> &DirectoryEntryHeader
fn header(&self) -> &DirectoryEntryHeader
DirectoryEntryHeader
attached to the current object. Generally not something to be called directly.Source§fn relocated(&self) -> bool
fn relocated(&self) -> bool
Source§fn time(&self) -> OffsetDateTime
fn time(&self) -> OffsetDateTime
Source§fn owner(&self) -> Option<u32>
fn owner(&self) -> Option<u32>
st_uid
), if available. Read moreSource§fn group(&self) -> Option<u32>
fn group(&self) -> Option<u32>
st_gid
), if available. Read moreSource§fn mode(&self) -> Option<PosixFileMode>
fn mode(&self) -> Option<PosixFileMode>
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> Freeze for DirectoryEntry<T>
impl<T> !RefUnwindSafe for DirectoryEntry<T>
impl<T> !Send for DirectoryEntry<T>
impl<T> !Sync for DirectoryEntry<T>
impl<T> Unpin for DirectoryEntry<T>
impl<T> !UnwindSafe for DirectoryEntry<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more