Struct photonio_uring::fs::Metadata
source · pub struct Metadata(_);
Expand description
Metadata information about a file.
See also std::fs::Metadata
.
Implementations
sourceimpl Metadata
impl Metadata
sourcepub fn len(&self) -> u64
pub fn len(&self) -> u64
Returns the size of the file this metadata is for.
See also std::fs::Metadata::len
.
sourcepub fn is_dir(&self) -> bool
pub fn is_dir(&self) -> bool
Returns true if this metadata is for a directory.
See also std::fs::Metadata::is_dir
.
sourcepub fn is_file(&self) -> bool
pub fn is_file(&self) -> bool
Returns true if this metadata is for a regular file.
See also std::fs::Metadata::is_file
.
sourcepub fn is_symlink(&self) -> bool
pub fn is_symlink(&self) -> bool
Returns true if this metadata is for a symbolic link.
See also std::fs::Metadata::is_symlink
.
Trait Implementations
sourceimpl MetadataExt for Metadata
impl MetadataExt for Metadata
sourcefn atime(&self) -> i64
fn atime(&self) -> i64
Returns the last access time of the file, in seconds since Unix Epoch. Read more
sourcefn atime_nsec(&self) -> i64
fn atime_nsec(&self) -> i64
sourcefn mtime(&self) -> i64
fn mtime(&self) -> i64
Returns the last modification time of the file, in seconds since Unix Epoch. Read more
sourcefn mtime_nsec(&self) -> i64
fn mtime_nsec(&self) -> i64
sourcefn ctime(&self) -> i64
fn ctime(&self) -> i64
Returns the last status change time of the file, in seconds since Unix Epoch. Read more
sourcefn ctime_nsec(&self) -> i64
fn ctime_nsec(&self) -> i64
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more