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

pub struct LocalFs { /* fields omitted */ }

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]

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]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,