[][src]Enum hyper_staticfile::ResolveResult

pub enum ResolveResult {
    MethodNotMatched,
    UriNotMatched,
    NotFound,
    PermissionDenied,
    IsDirectory,
    Found(FileMetadata),
}

The result of resolve.

Covers all the possible 'normal' scenarios encountered when serving static files.

Variants

MethodNotMatched

The request was not GET or HEAD request,

UriNotMatched

The request URI was not just a path.

NotFound

The requested file does not exist.

PermissionDenied

The requested file could not be accessed.

IsDirectory

A directory was requested as a file.

Found(FileMetadata)

The requested file was found.

Trait Implementations

impl Debug for ResolveResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> Erased for T