[−][src]Struct webdav_handler::localfs::LocalFs
Local Filesystem implementation.
Implementations
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!
pub fn new_file<P: AsRef<Path>>(file: P, public: bool) -> Box<LocalFs>[src]
Create a new LocalFs DavFileSystem, serving "file".
This is like new(), but it always serves this single file.
The request path is ignored.
Trait Implementations
impl Clone for LocalFs[src]
impl DavFileSystem for LocalFs[src]
pub fn metadata<'a>(
&'a self,
davpath: &'a DavPath
) -> FsFuture<'_, Box<dyn DavMetaData>>[src]
&'a self,
davpath: &'a DavPath
) -> FsFuture<'_, Box<dyn DavMetaData>>
pub fn symlink_metadata<'a>(
&'a self,
davpath: &'a DavPath
) -> FsFuture<'_, Box<dyn DavMetaData>>[src]
&'a self,
davpath: &'a DavPath
) -> FsFuture<'_, Box<dyn DavMetaData>>
pub fn read_dir<'a>(
&'a self,
davpath: &'a DavPath,
meta: ReadDirMeta
) -> FsFuture<'_, FsStream<Box<dyn DavDirEntry>>>[src]
&'a self,
davpath: &'a DavPath,
meta: ReadDirMeta
) -> FsFuture<'_, FsStream<Box<dyn DavDirEntry>>>
pub fn open<'a>(
&'a self,
path: &'a DavPath,
options: OpenOptions
) -> FsFuture<'_, Box<dyn DavFile>>[src]
&'a self,
path: &'a DavPath,
options: OpenOptions
) -> FsFuture<'_, Box<dyn DavFile>>
pub fn create_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>[src]
pub fn remove_dir<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>[src]
pub fn remove_file<'a>(&'a self, path: &'a DavPath) -> FsFuture<'_, ()>[src]
pub fn rename<'a>(
&'a self,
from: &'a DavPath,
to: &'a DavPath
) -> FsFuture<'_, ()>[src]
&'a self,
from: &'a DavPath,
to: &'a DavPath
) -> FsFuture<'_, ()>
pub fn copy<'a>(
&'a self,
from: &'a DavPath,
to: &'a DavPath
) -> FsFuture<'_, ()>[src]
&'a self,
from: &'a DavPath,
to: &'a DavPath
) -> FsFuture<'_, ()>
pub fn have_props<'a>(
&'a self,
path: &'a DavPath
) -> Pin<Box<dyn Future<Output = bool> + Send + 'a>>[src]
&'a self,
path: &'a DavPath
) -> Pin<Box<dyn Future<Output = bool> + Send + 'a>>
pub fn patch_props<'a>(
&'a self,
path: &'a DavPath,
patch: Vec<(bool, DavProp)>
) -> FsFuture<'_, Vec<(StatusCode, DavProp)>>[src]
&'a self,
path: &'a DavPath,
patch: Vec<(bool, DavProp)>
) -> FsFuture<'_, Vec<(StatusCode, DavProp)>>
pub fn get_props<'a>(
&'a self,
path: &'a DavPath,
do_content: bool
) -> FsFuture<'_, Vec<DavProp>>[src]
&'a self,
path: &'a DavPath,
do_content: bool
) -> FsFuture<'_, Vec<DavProp>>
pub fn get_prop<'a>(
&'a self,
path: &'a DavPath,
prop: DavProp
) -> FsFuture<'_, Vec<u8>>[src]
&'a self,
path: &'a DavPath,
prop: DavProp
) -> FsFuture<'_, Vec<u8>>
pub fn get_quota<'a>(&'a self) -> FsFuture<'_, (u64, Option<u64>)>[src]
Auto Trait Implementations
impl !RefUnwindSafe for LocalFs[src]
impl Send for LocalFs[src]
impl Sync for LocalFs[src]
impl Unpin for LocalFs[src]
impl !UnwindSafe for LocalFs[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,