Trait cdfs::ExtraAttributes

source ·
pub trait ExtraAttributes {
Show 15 methods // Required methods fn ext(&self) -> &ExtraMeta; fn header(&self) -> &DirectoryEntryHeader; // Provided methods fn relocated(&self) -> bool { ... } fn time(&self) -> OffsetDateTime { ... } fn owner(&self) -> Option<u32> { ... } fn group(&self) -> Option<u32> { ... } fn mode(&self) -> Option<PosixFileMode> { ... } fn access_time(&self) -> OffsetDateTime { ... } fn attribute_change_time(&self) -> OffsetDateTime { ... } fn backup_time(&self) -> OffsetDateTime { ... } fn create_time(&self) -> OffsetDateTime { ... } fn effective_time(&self) -> OffsetDateTime { ... } fn expire_time(&self) -> OffsetDateTime { ... } fn modify_time(&self) -> OffsetDateTime { ... } fn inode(&self) -> Option<u32> { ... }
}
Expand description

ExtraAttributes encapsulates various metadata specified by ISO-9660 / ECMA-119 extensions.

This is the preferred way to get DirectoryEntry metadata even if there is overlap with the base standard.

Required Methods§

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.

Provided Methods§

source

fn relocated(&self) -> bool

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

See Also

Rock Ridge Interchange Protocol § 4.1.5

source

fn time(&self) -> OffsetDateTime

Returns the ISO 9660 “recording” timestamp.

See Also

ISO-9660 / ECMA-119 §§ 9.1.5

source

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

Returns the file owner’s user ID (st_uid), if available.

See Also
  • POSIX.1
  • Rock Ridge Interchange Protocol § 4.1.1
source

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

Returns the file owner’s group ID (st_gid), if available.

See Also
  • POSIX.1
  • Rock Ridge Interchange Protocol § 4.1.1
source

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

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

See Also

POSIX.1

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.

See Also
  • POSIX.1
  • Rock Ridge Interchange Protocol § 4.1.6
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.

See Also
  • POSIX.1
  • Rock Ridge Interchange Protocol § 4.1.6
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.

See Also
  • Rock Ridge Interchange Protocol § 4.1.6
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.

See Also
  • ISO 9660 / ECMA-119 § 9.5.4
  • Rock Ridge Interchange Protocol § 4.1.6
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.

See Also
  • ISO 9660 / ECMA-119 § 9.5.7
  • Rock Ridge Interchange Protocol § 4.1.6
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.

See Also
  • ISO 9660 / ECMA-119 § 9.5.6
  • Rock Ridge Interchange Protocol § 4.1.6
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.

See Also
  • POSIX.1
  • ISO 9660 / ECMA-119 § 9.5.5
  • Rock Ridge Interchange Protocol § 4.1.6
source

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

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

See Also
  • ISO-9660 / ECMA-119 §§ 12.3.5
  • Rock Ridge Interchange Protocol § 4.1.1

Implementors§