[][src]Trait webdav_handler::fs::DavDirEntry

pub trait DavDirEntry: Send + Sync {
    fn name(&self) -> Vec<u8>;
fn metadata<'a>(&'a self) -> FsFuture<Box<dyn DavMetaData>>; fn is_dir<'a>(&'a self) -> FsFuture<bool> { ... }
fn is_file<'a>(&'a self) -> FsFuture<bool> { ... }
fn is_symlink<'a>(&'a self) -> FsFuture<bool> { ... } }

One directory entry (or child node).

Required methods

fn name(&self) -> Vec<u8>

Name of the entry.

fn metadata<'a>(&'a self) -> FsFuture<Box<dyn DavMetaData>>

Metadata of the entry.

Loading content...

Provided methods

fn is_dir<'a>(&'a self) -> FsFuture<bool>

Default implementation of is_dir just returns metadata()?.is_dir(). Implementations can override this if their metadata() method is expensive and there is a cheaper way to provide the same info (e.g. dirent.d_type in unix filesystems).

fn is_file<'a>(&'a self) -> FsFuture<bool>

Likewise. Default: !is_dir().

Likewise. Default: false.

Loading content...

Implementors

Loading content...