Enum poem::error::StaticFileError [−][src]
pub enum StaticFileError {
MethodNotAllowed(Method),
InvalidPath,
Forbidden(String),
NotFound(String),
Io(Error),
}
Expand description
A possible error value when processing static files.
Variants
MethodNotAllowed(Method)
Tuple Fields
0: Method
Method not allow
InvalidPath
Invalid path
Forbidden(String)
Tuple Fields
0: String
Forbidden
NotFound(String)
Tuple Fields
0: String
File not found
Io(Error)
Tuple Fields
0: Error
Io error
Trait Implementations
The status code of this error.
Auto Trait Implementations
impl !RefUnwindSafe for StaticFileError
impl Send for StaticFileError
impl Sync for StaticFileError
impl Unpin for StaticFileError
impl !UnwindSafe for StaticFileError
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