Struct dav_server::memfs::MemFs
source · [−]pub struct MemFs { /* private fields */ }memfs only.Expand description
Ephemeral in-memory filesystem.
Implementations
Trait Implementations
sourceimpl DavFileSystem for MemFs
impl DavFileSystem for MemFs
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourcefn create_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>
fn create_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>
Create a directory. Read more
sourcefn remove_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>
fn remove_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>
Remove a directory. Read more
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for MemFs
impl Send for MemFs
impl Sync for MemFs
impl Unpin for MemFs
impl UnwindSafe for MemFs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more