pub enum UriSegmentError {
BadStart(char),
BadChar(char),
BadEnd(char),
}
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 Error for UriSegmentError
impl Error for UriSegmentError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for UriSegmentError
impl PartialEq for UriSegmentError
Source§impl ResponseError for UriSegmentError
Return BadRequest
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
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Response’s status code Read more
impl StructuralPartialEq for UriSegmentError
Auto Trait Implementations§
impl Freeze for UriSegmentError
impl RefUnwindSafe for UriSegmentError
impl Send for UriSegmentError
impl Sync for UriSegmentError
impl Unpin for UriSegmentError
impl UnwindSafe for UriSegmentError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more