[][src]Struct webdav_handler::localfs::LocalFs

pub struct LocalFs { /* fields omitted */ }

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]

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 have_props<'a>(
    &'a self,
    path: &'a WebPath
) -> Pin<Box<dyn Future<Output = bool> + Send + 'a>>
[src]

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]

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]

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]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for LocalFs

impl Sync for LocalFs

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self