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

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

File metadata. Basically type, length, and some timestamps.

Required methods

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

Size of the file.

pub fn modified(&self) -> FsResult<SystemTime>[src]

Modified timestamp.

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

File or directory (aka collection).

Loading content...

Provided methods

pub fn etag(&self) -> Option<String>[src]

Simplistic implementation of etag()

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

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

Is this a file and not a directory. Default: !s_dir().

Is this a symbolic link. Default: false.

pub fn accessed(&self) -> FsResult<SystemTime>[src]

Last access time. Default: FsError::NotImplemented.

pub fn created(&self) -> FsResult<SystemTime>[src]

Creation time. Default: FsError::NotImplemented.

pub fn status_changed(&self) -> FsResult<SystemTime>[src]

Inode change time (ctime). Default: FsError::NotImplemented.

pub fn executable(&self) -> FsResult<bool>[src]

Is file executable (unix: has "x" mode bit). Default: FsError::NotImplemented.

Loading content...

Implementors

Loading content...