Enum cosworth::prelude::StaticFileError
source · pub enum StaticFileError {
IsNotDirectory,
IsDirectory,
}
Expand description
Errors which can occur when serving static files.
Variants§
Trait Implementations§
source§impl Debug for StaticFileError
impl Debug for StaticFileError
source§impl Display for StaticFileError
impl Display for StaticFileError
source§impl Fail for StaticFileError
impl Fail for StaticFileError
source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresource§impl PartialEq<StaticFileError> for StaticFileError
impl PartialEq<StaticFileError> for StaticFileError
source§fn eq(&self, other: &StaticFileError) -> bool
fn eq(&self, other: &StaticFileError) -> bool
source§impl ResponseError for StaticFileError
impl ResponseError for StaticFileError
Return NotFound
for StaticFileError
source§fn 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§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more