Struct rsfs::mem::Metadata [] [src]

pub struct Metadata(_);

Metadata information about a file.

This structure, which implements rsfs::Metadata, is returned from the metadata or symlink_metadata methods and represents known metadata information about a file at the instant in time this structure is instantiated.

Examples

let fs = FS::new();
fs.create_file("f")?;
println!("{:?}", fs.metadata("f")?);

Trait Implementations

impl Clone for Metadata
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Metadata
[src]

Formats the value using the given formatter.

impl Metadata for Metadata
[src]

The Permissions type in the same module implementing this trait.

The FileType type in the same module implementing this trait.

Returns the file type for this metadata. Read more

Returns whether this metadata is for a directory. Read more

Returns whether this metadata is for a file. Read more

Returns the size, in bytes, of the file this metadata is for. Read more

Returns the permissions of the file this metadata is for. Read more

Returns the last modification time listed in this metadata. Read more

Returns the last access time listed in this metadata. Read more

Returns the creation time listed in this metadata. Read more

Returns whether the file is empty. This defaults to checking len() == 0. Read more