Enum actix_web::error::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
sourceimpl Debug for UriSegmentError
impl Debug for UriSegmentError
sourceimpl Display for UriSegmentError
impl Display for UriSegmentError
sourceimpl Fail for UriSegmentError
impl Fail for UriSegmentError
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<UriSegmentError> for UriSegmentError
impl PartialEq<UriSegmentError> for UriSegmentError
sourcefn eq(&self, other: &UriSegmentError) -> bool
fn eq(&self, other: &UriSegmentError) -> bool
sourceimpl ResponseError for UriSegmentError
impl ResponseError for UriSegmentError
Return BadRequest
for UriSegmentError
sourcefn 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
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