pub struct InvalidUtf8InPathParam { /* private fields */ }
Expand description
Rejection used by RawPathParams
if a parameter contained text that, once percent decoded,
wasn’t valid UTF-8.
Implementations§
§impl InvalidUtf8InPathParam
impl InvalidUtf8InPathParam
pub fn status(&self) -> StatusCode
pub fn status(&self) -> StatusCode
Get the status code used for this rejection.
Trait Implementations§
§impl Debug for InvalidUtf8InPathParam
impl Debug for InvalidUtf8InPathParam
§impl Display for InvalidUtf8InPathParam
impl Display for InvalidUtf8InPathParam
§impl Error for InvalidUtf8InPathParam
impl Error for InvalidUtf8InPathParam
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()
§impl From<InvalidUtf8InPathParam> for RawPathParamsRejection
impl From<InvalidUtf8InPathParam> for RawPathParamsRejection
§fn from(inner: InvalidUtf8InPathParam) -> RawPathParamsRejection
fn from(inner: InvalidUtf8InPathParam) -> RawPathParamsRejection
Converts to this type from the input type.
§impl IntoResponse for InvalidUtf8InPathParam
impl IntoResponse for InvalidUtf8InPathParam
§fn into_response(self) -> Response<Body>
fn into_response(self) -> Response<Body>
Create a response.
Auto Trait Implementations§
impl Freeze for InvalidUtf8InPathParam
impl RefUnwindSafe for InvalidUtf8InPathParam
impl Send for InvalidUtf8InPathParam
impl Sync for InvalidUtf8InPathParam
impl Unpin for InvalidUtf8InPathParam
impl UnwindSafe for InvalidUtf8InPathParam
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