Enum cdfs::DirectoryEntry
source · 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 more