Enum hyper_staticfile::ResolveResult [−][src]
pub enum ResolveResult {
MethodNotMatched,
UriNotMatched,
NotFound,
PermissionDenied,
IsDirectory,
Found(File, Metadata, Mime),
}
Expand description
The result of resolve
.
Covers all the possible ‘normal’ scenarios encountered when serving static files.
Variants
The request was not GET
or HEAD
request,
The request URI was not just a path.
The requested file does not exist.
The requested file could not be accessed.
A directory was requested as a file.
The requested file was found.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ResolveResult
impl Send for ResolveResult
impl Sync for ResolveResult
impl Unpin for ResolveResult
impl !UnwindSafe for ResolveResult
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more