[][src]Trait webdav_handler::fs::DavMetaData

pub trait DavMetaData: Debug + BoxCloneMd + Send + Sync {
    fn len(&self) -> u64;
fn modified(&self) -> FsResult<SystemTime>;
fn is_dir(&self) -> bool; fn etag(&self) -> Option<String> { ... }
fn is_file(&self) -> bool { ... }
fn is_symlink(&self) -> bool { ... }
fn accessed(&self) -> FsResult<SystemTime> { ... }
fn created(&self) -> FsResult<SystemTime> { ... }
fn status_changed(&self) -> FsResult<SystemTime> { ... }
fn executable(&self) -> FsResult<bool> { ... } }

File metadata. Not much more than type, length, and some timestamps.

Required methods

fn len(&self) -> u64

fn modified(&self) -> FsResult<SystemTime>

fn is_dir(&self) -> bool

Loading content...

Provided methods

fn etag(&self) -> Option<String>

Simplistic implementation of etag()

Returns a simple etag that basically is "<length>-<timestamp_in_ms>" with the numbers in hex. Enough for most implementations.

fn is_file(&self) -> bool

Default implementation for is_file() is !self.is_dir()

Default implementation for is_symlink() is "false".

fn accessed(&self) -> FsResult<SystemTime>

Last access time (default: notimplemented_fut)

fn created(&self) -> FsResult<SystemTime>

Creation time (default: notimplemented_fut)

fn status_changed(&self) -> FsResult<SystemTime>

Inode change time (ctime) (default: notimplemented_fut)

fn executable(&self) -> FsResult<bool>

Is file executable (unix: has "x" mode bit) (default: notimplemented_fut)

Loading content...

Implementors

Loading content...