Enum poem::error::StaticFileError
source · [−]pub enum StaticFileError {
MethodNotAllowed(Method),
InvalidPath,
Forbidden(String),
NotFound(String),
PreconditionFailed,
RangeNotSatisfiable {
size: u64,
},
Io(Error),
}
Expand description
A possible error value when processing static files.
Variants
MethodNotAllowed(Method)
Method not allow
InvalidPath
Invalid path
Forbidden(String)
Forbidden
NotFound(String)
File not found
PreconditionFailed
Precondition failed
RangeNotSatisfiable
Fields
size: u64
Content length
Range not satisfiable
Io(Error)
Io error
Trait Implementations
The status code of this error.
Convert this error to a HTTP response.
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