[][src]Struct openat::Metadata

pub struct Metadata { /* fields omitted */ }

A file metadata

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

Methods

impl Metadata[src]

pub fn simple_type(&self) -> SimpleType[src]

Returns simplified type of the directory entry

pub fn stat(&self) -> &stat[src]

Returns underlying stat structure

pub fn is_file(&self) -> bool[src]

Returns true if the entry is a regular file

pub fn is_dir(&self) -> bool[src]

Returns true if the entry is a directory

pub fn permissions(&self) -> Permissions[src]

Returns permissions of the entry

pub fn len(&self) -> u64[src]

Returns file size

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]