Struct photonio_uring::fs::Metadata

source ·
pub struct Metadata(_);
Expand description

Metadata information about a file.

See also std::fs::Metadata.

Implementations

Returns the size of the file this metadata is for.

See also std::fs::Metadata::len.

Returns true if this metadata is for a directory.

See also std::fs::Metadata::is_dir.

Returns true if this metadata is for a regular file.

See also std::fs::Metadata::is_file.

Returns true if this metadata is for a symbolic link.

See also std::fs::Metadata::is_symlink.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the ID of the device containing the file. Read more
Returns the inode number. Read more
Returns the rights applied to this file. Read more
Returns the number of hard links pointing to this file. Read more
Returns the user ID of the owner of this file. Read more
Returns the group ID of the owner of this file. Read more
Returns the device ID of this file (if it is a special one). Read more
Returns the total size of this file in bytes. Read more
Returns the last access time of the file, in seconds since Unix Epoch. Read more
Returns the last access time of the file, in nanoseconds since atime. Read more
Returns the last modification time of the file, in seconds since Unix Epoch. Read more
Returns the last modification time of the file, in nanoseconds since mtime. Read more
Returns the last status change time of the file, in seconds since Unix Epoch. Read more
Returns the last status change time of the file, in nanoseconds since ctime. Read more
Returns the block size for filesystem I/O. Read more
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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.