#[non_exhaustive]pub enum UriSegmentError {
BadStart(char),
BadChar(char),
BadEnd(char),
NotValidUtf8,
}Expand description
Error which can occur with parsing/validating a request-uri path
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadStart(char)
Segment started with the wrapped invalid character.
BadChar(char)
Segment contained the wrapped invalid character.
BadEnd(char)
Segment ended with the wrapped invalid character.
NotValidUtf8
Path is not a valid UTF-8 string after percent-decoding.
Trait Implementations§
Source§impl Debug for UriSegmentError
impl Debug for UriSegmentError
Source§impl Display for UriSegmentError
impl Display for UriSegmentError
Source§impl PartialEq for UriSegmentError
impl PartialEq for UriSegmentError
Source§impl ResponseError for UriSegmentError
impl ResponseError for UriSegmentError
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Returns 400 Bad Request.
Source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Creates full response for error. Read more
impl Eq for UriSegmentError
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