[−][src]Struct webdav_handler::localfs::LocalFs
Local Filesystem implementation.
Methods
impl LocalFs[src]
pub fn new<P: AsRef<Path>>(
base: P,
public: bool,
case_insensitive: bool,
macos: bool
) -> Box<LocalFs>[src]
base: P,
public: bool,
case_insensitive: bool,
macos: bool
) -> Box<LocalFs>
Create a new LocalFs DavFileSystem, serving "base".
If "public" is set to true, all files and directories created will be publically readable (mode 644/755), otherwise they will be private (mode 600/700). Umask stil overrides this.
If "case_insensitive" is set to true, all filesystem lookups will be case insensitive. Note that this has a lot of overhead!
Trait Implementations
impl DavFileSystem for LocalFs[src]
fn metadata<'a>(
&'a self,
webpath: &'a WebPath
) -> FsFuture<Box<dyn DavMetaData>>[src]
&'a self,
webpath: &'a WebPath
) -> FsFuture<Box<dyn DavMetaData>>
fn symlink_metadata<'a>(
&'a self,
webpath: &'a WebPath
) -> FsFuture<Box<dyn DavMetaData>>[src]
&'a self,
webpath: &'a WebPath
) -> FsFuture<Box<dyn DavMetaData>>
fn read_dir<'a>(
&'a self,
webpath: &'a WebPath,
meta: ReadDirMeta
) -> FsFuture<Pin<Box<dyn Stream<Item = Box<dyn DavDirEntry>> + Send>>>[src]
&'a self,
webpath: &'a WebPath,
meta: ReadDirMeta
) -> FsFuture<Pin<Box<dyn Stream<Item = Box<dyn DavDirEntry>> + Send>>>
fn open<'a>(
&'a self,
path: &'a WebPath,
options: OpenOptions
) -> FsFuture<Box<dyn DavFile>>[src]
&'a self,
path: &'a WebPath,
options: OpenOptions
) -> FsFuture<Box<dyn DavFile>>
fn create_dir<'a>(&'a self, path: &'a WebPath) -> FsFuture<()>[src]
fn remove_dir<'a>(&'a self, path: &'a WebPath) -> FsFuture<()>[src]
fn remove_file<'a>(&'a self, path: &'a WebPath) -> FsFuture<()>[src]
fn rename<'a>(&'a self, from: &'a WebPath, to: &'a WebPath) -> FsFuture<()>[src]
fn copy<'a>(&'a self, from: &'a WebPath, to: &'a WebPath) -> FsFuture<()>[src]
fn have_props<'a>(
&'a self,
path: &'a WebPath
) -> Pin<Box<dyn Future<Output = bool> + Send + 'a>>[src]
&'a self,
path: &'a WebPath
) -> Pin<Box<dyn Future<Output = bool> + Send + 'a>>
Indicator that tells if this filesystem driver supports DAV properties. Read more
fn patch_props<'a>(
&'a self,
path: &'a WebPath,
set: Vec<DavProp>,
remove: Vec<DavProp>
) -> FsFuture<Vec<(StatusCode, DavProp)>>[src]
&'a self,
path: &'a WebPath,
set: Vec<DavProp>,
remove: Vec<DavProp>
) -> FsFuture<Vec<(StatusCode, DavProp)>>
Patch the DAV properties of a node (add/remove props) Read more
fn get_props<'a>(
&'a self,
path: &'a WebPath,
do_content: bool
) -> FsFuture<Vec<DavProp>>[src]
&'a self,
path: &'a WebPath,
do_content: bool
) -> FsFuture<Vec<DavProp>>
List/get the DAV properties of a node. Read more
fn get_prop<'a>(&'a self, path: &'a WebPath, prop: DavProp) -> FsFuture<Vec<u8>>[src]
Get one specific named property of a node. Read more
fn get_quota<'a>(&'a self) -> FsFuture<(u64, Option<u64>)>[src]
Get quota of this filesystem (used/total space). Read more
impl Clone for LocalFs[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self