Struct dav_server::memfs::MemFs
source · pub struct MemFs { /* private fields */ }Available on crate feature
memfs only.Expand description
Ephemeral in-memory filesystem.
Implementations§
Trait Implementations§
source§impl DavFileSystem for MemFs
impl DavFileSystem for MemFs
source§fn metadata<'a>(
&'a self,
path: &'a DavPath
) -> FsFuture<'_, Box<dyn DavMetaData>>
fn metadata<'a>(
&'a self,
path: &'a DavPath
) -> FsFuture<'_, Box<dyn DavMetaData>>
Return the metadata of a file or directory.
source§fn read_dir<'a>(
&'a self,
path: &'a DavPath,
_meta: ReadDirMeta
) -> FsFuture<'_, FsStream<Box<dyn DavDirEntry>>>
fn read_dir<'a>(
&'a self,
path: &'a DavPath,
_meta: ReadDirMeta
) -> FsFuture<'_, FsStream<Box<dyn DavDirEntry>>>
Perform read_dir.
source§fn open<'a>(
&'a self,
path: &'a DavPath,
options: OpenOptions
) -> FsFuture<'_, Box<dyn DavFile>>
fn open<'a>(
&'a self,
path: &'a DavPath,
options: OpenOptions
) -> FsFuture<'_, Box<dyn DavFile>>
Open a file.
source§fn create_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>
fn create_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>
Create a directory. Read more
source§fn remove_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>
fn remove_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>
Remove a directory. Read more
source§fn rename<'a>(&'a self, from: &'a DavPath, to: &'a DavPath) -> FsFuture<'_, ()>
fn rename<'a>(&'a self, from: &'a DavPath, to: &'a DavPath) -> FsFuture<'_, ()>
Rename a file or directory. Read more
source§fn copy<'a>(&'a self, from: &'a DavPath, to: &'a DavPath) -> FsFuture<'_, ()>
fn copy<'a>(&'a self, from: &'a DavPath, to: &'a DavPath) -> FsFuture<'_, ()>
Copy a file Read more
source§fn have_props<'a>(&'a self, _path: &'a DavPath) -> BoxFuture<'a, bool>
fn have_props<'a>(&'a self, _path: &'a DavPath) -> BoxFuture<'a, bool>
Indicator that tells if this filesystem driver supports DAV properties. Read more
source§fn patch_props<'a>(
&'a self,
path: &'a DavPath,
patch: Vec<(bool, DavProp)>
) -> FsFuture<'_, Vec<(StatusCode, DavProp)>>
fn patch_props<'a>(
&'a self,
path: &'a DavPath,
patch: Vec<(bool, DavProp)>
) -> FsFuture<'_, Vec<(StatusCode, DavProp)>>
Patch the DAV properties of a node (add/remove props) Read more
source§fn get_props<'a>(
&'a self,
path: &'a DavPath,
do_content: bool
) -> FsFuture<'_, Vec<DavProp>>
fn get_props<'a>(
&'a self,
path: &'a DavPath,
do_content: bool
) -> FsFuture<'_, Vec<DavProp>>
List/get the DAV properties of a node. Read more
source§fn get_prop<'a>(
&'a self,
path: &'a DavPath,
prop: DavProp
) -> FsFuture<'_, Vec<u8>>
fn get_prop<'a>(
&'a self,
path: &'a DavPath,
prop: DavProp
) -> FsFuture<'_, Vec<u8>>
Get one specific named property of a node. Read more
source§fn symlink_metadata<'a>(
&'a self,
path: &'a DavPath
) -> FsFuture<'_, Box<dyn DavMetaData>>
fn symlink_metadata<'a>(
&'a self,
path: &'a DavPath
) -> FsFuture<'_, Box<dyn DavMetaData>>
Return the metadata of a file, directory or symbolic link. Read more