Struct cap_std::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
Returns the value of the dwFileAttributes
field of this metadata. Read more
Returns the value of the ftCreationTime
field of this metadata. Read more
Returns the value of the ftLastAccessTime
field of this metadata. Read more
Returns the value of the ftLastWriteTime
field of this metadata. Read more
Returns the value of the nFileSize{High,Low}
fields of this
metadata. Read more
windows_by_handle
)Returns the value of the dwVolumeSerialNumber
field of this
metadata. Read more
windows_by_handle
)Returns the value of the nNumberOfLinks
field of this
metadata. Read more
windows_by_handle
)Returns the value of the nFileIndex{Low,High}
fields of this
metadata. Read more
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
Mutably borrows from an owned value. Read more