#[repr(transparent)]
pub struct MetaData { /* private fields */ }
Expand description

Metadata information about a file. This structure is returned from the metadata or symlink_metadata function or method and represents known metadata about a file such as its permissions, size, modification times, etc

Trait Implementations

Returns the last access time of this metadata. Read more

Returns the creation time listed in this metadata. Read more

Returns true if this metadata is for a regular file. Read more

Available on crate feature nightly only.

Returns true if this metadata is for a symbolic link.

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

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

Returns the ID of the device containing the file.

Returns the inode number.

Returns the rights applied to this file.

Returns the number of hard links pointing to this file.

Returns the user ID of the owner of this file.

Returns the group ID of the owner of this file.

Returns the device ID of this file (if it is a special one).

Returns the total size of this file in bytes.

Returns the last access time of the file, in seconds since Unix Epoch.

Returns the last access time of the file, in nanoseconds since atime.

Returns the last modification time of the file, in seconds since Unix Epoch.

Returns the last modification time of the file, in nanoseconds since mtime.

Returns the last status change time of the file, in seconds since Unix Epoch.

Returns the last status change time of the file, in nanoseconds since ctime.

Returns the block size for filesystem I/O.

Returns the number of blocks allocated to the file, in 512-byte units. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.