Struct cap_primitives::fs::Metadata [−][src]
pub struct Metadata { /* fields omitted */ }
Expand description
Metadata information about a file.
This corresponds to std::fs::Metadata
.
Implementations
Constructs a new instance of Self
from the given std::fs::File
.
Constructs a new instance of Self
from the given
std::fs::Metadata
.
As with the comments in std::fs::Metadata::volume_serial_number
and
nearby functions, some fields of the resulting metadata will be None
.
Returns the file type for this metadata.
This corresponds to std::fs::Metadata::file_type
.
Returns true
if this metadata is for a directory.
This corresponds to std::fs::Metadata::is_dir
.
Returns true
if this metadata is for a regular file.
This corresponds to std::fs::Metadata::is_file
.
Returns the size of the file, in bytes, this metadata is for.
This corresponds to std::fs::Metadata::len
.
Returns the permissions of the file this metadata is for.
This corresponds to std::fs::Metadata::permissions
.
Returns the last modification time listed in this metadata.
This corresponds to std::fs::Metadata::modified
.
Returns the last access time of this metadata.
This corresponds to std::fs::Metadata::accessed
.
Returns the creation time listed in this metadata.
This corresponds to std::fs::Metadata::created
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
Mutably borrows from an owned value. Read more