Enum cosworth::prelude::UriSegmentError
source · Expand description
Errors which can occur when attempting to interpret a segment string as a valid path segment.
Variants§
BadStart(char)
The segment started with the wrapped invalid character.
BadChar(char)
The segment contained the wrapped invalid character.
BadEnd(char)
The segment ended with the wrapped invalid character.
Trait Implementations§
source§impl Debug for UriSegmentError
impl Debug for UriSegmentError
source§impl Display for UriSegmentError
impl Display for UriSegmentError
source§impl Fail for UriSegmentError
impl Fail for UriSegmentError
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<UriSegmentError> for UriSegmentError
impl PartialEq<UriSegmentError> for UriSegmentError
source§fn eq(&self, other: &UriSegmentError) -> bool
fn eq(&self, other: &UriSegmentError) -> bool
source§impl ResponseError for UriSegmentError
impl ResponseError for UriSegmentError
Return BadRequest
for UriSegmentError
source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
impl StructuralPartialEq for UriSegmentError
Auto Trait Implementations§
impl RefUnwindSafe for UriSegmentError
impl Send for UriSegmentError
impl Sync for UriSegmentError
impl Unpin for UriSegmentError
impl UnwindSafe for UriSegmentError
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