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)>
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<UriSegmentError> for UriSegmentError
impl PartialEq<UriSegmentError> for UriSegmentError
source§fn eq(&self, other: &UriSegmentError) -> bool
fn eq(&self, other: &UriSegmentError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ResponseError for UriSegmentError
impl ResponseError for UriSegmentError
Return BadRequest
for UriSegmentError
source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Creates full response for error. Read more
source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more