Capabilities structv0.1.0

Source
What the running system can actually answer, so a caller can ask before it assumes.
pub struct Capabilities {
    pub unixPermissions: bool;
    pub creationTime: bool;
    // private fields
}

Fields

NameTypeDescription
unixPermissionsboolWhether Permissions::mode is the system's own answer rather than one synthesized from a flag.
creationTimeboolWhether the system records a creation time.

CapabilitiesOfSystem

pub func CapabilitiesOfSystem() -> Capabilities

What this system can answer.

Source

Returns: what this system's metadata actually carries, so a caller can tell an absent value from a false one