Enum actix_web::error::StaticFileError
source · pub enum StaticFileError {
IsNotDirectory,
IsDirectory,
}
Expand description
Errors which can occur when serving static files.
Variants
IsNotDirectory
Path is not a directory
IsDirectory
Cannot render directory
Trait Implementations
sourceimpl Debug for StaticFileError
impl Debug for StaticFileError
sourceimpl Display for StaticFileError
impl Display for StaticFileError
sourceimpl Fail for StaticFileError
impl Fail for StaticFileError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl PartialEq<StaticFileError> for StaticFileError
impl PartialEq<StaticFileError> for StaticFileError
sourcefn eq(&self, other: &StaticFileError) -> bool
fn eq(&self, other: &StaticFileError) -> bool
sourceimpl ResponseError for StaticFileError
impl ResponseError for StaticFileError
Return NotFound
for StaticFileError
sourcefn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
impl StructuralPartialEq for StaticFileError
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more