pub trait DavDirEntry: Send + Sync {
// Required methods
fn name(&self) -> Vec<u8> ⓘ;
fn metadata(&self) -> FsFuture<'_, Box<dyn DavMetaData>>;
// Provided methods
fn is_dir(&self) -> FsFuture<'_, bool> { ... }
fn is_file(&self) -> FsFuture<'_, bool> { ... }
fn is_symlink(&self) -> FsFuture<'_, bool> { ... }
}Expand description
One directory entry (or child node).
Required Methods§
Sourcefn metadata(&self) -> FsFuture<'_, Box<dyn DavMetaData>>
fn metadata(&self) -> FsFuture<'_, Box<dyn DavMetaData>>
Metadata of the entry.
Provided Methods§
Sourcefn is_dir(&self) -> FsFuture<'_, bool>
fn is_dir(&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).
Sourcefn is_symlink(&self) -> FsFuture<'_, bool>
fn is_symlink(&self) -> FsFuture<'_, bool>
Likewise. Default: false.