Struct openat_ct::Metadata[][src]

pub struct Metadata { /* fields omitted */ }
Expand description

A file metadata

Because we can’t freely create a std::fs::Metadata object we have to implement our own structure.

Implementations

Returns simplified type of the directory entry

Returns underlying stat structure

Returns true if the entry is a regular file

Returns true if the entry is a directory

Returns permissions of the entry

Returns file size

Return low level file type, if available

Return device node, if available

Return device node major of the file, if available

Return device node minor of the file, if available

Return device node major of an device descriptor, if available

Return device node minor of an device descriptor, if available

Return preferered I/O Blocksize, if available

Return the number of 512 bytes blocks, if available

Returns file size (same as len() but Option), if available

Returns number of hard-links, if available

Returns user id, if available

Returns group id, if available

Returns mode bits, if available

Returns last access time, if available

Returns creation, if available

Returns last status change time, if available

Returns last modification time, if available

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

Performs the conversion.

Performs the conversion.

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.