Struct cap_fs_ext::Metadata
source · [−]pub struct Metadata { /* private fields */ }
Expand description
Re-export these to allow them to be used with Reuse
.
Metadata information about a file.
This corresponds to std::fs::Metadata
.
Implementations
Re-export these to allow them to be used with Reuse
.
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 true
if this metadata is for a symbolic link.
This corresponds to std::fs::Metadata::is_symlink
.
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
Returns the device ID of this file (if it is a special one). Read more
Returns the last access time of the file, in seconds since Unix Epoch. Read more
Returns the last modification time of the file, in seconds since Unix Epoch. Read more
Returns the last status change time of the file, in seconds since Unix Epoch. Read more
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
Mutably borrows from an owned value. Read more