[][src]Struct gotham::handler::assets::DirHandler

pub struct DirHandler { /* fields omitted */ }

Represents a handler for any files under a directory.

Methods

impl DirHandler[src]

pub fn new<P>(path: P) -> DirHandler where
    FileOptions: From<P>, 
[src]

Create a new DirHandler with the given root path.

Trait Implementations

impl Handler for DirHandler[src]

impl NewHandler for DirHandler[src]

type Instance = Self

The type of Handler created by the NewHandler.

impl Clone for DirHandler[src]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<F, R> Handler for F where
    F: FnOnce(State) -> R + Send,
    R: IntoHandlerFuture
[src]

impl<F, H> NewHandler for F where
    F: Fn() -> Result<H, Error> + Send + Sync + RefUnwindSafe,
    H: Handler + Send
[src]

type Instance = H

The type of Handler created by the NewHandler.

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

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, 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T