Enum RawPathParamsRejection
#[non_exhaustive]
pub enum RawPathParamsRejection
Rejection used for RawPathParams.
Contains one variant for each way the RawPathParams extractor
can fail.
Variants
-
InvalidUtf8InPathParam(InvalidUtf8InPathParam) -
MissingPathParams(MissingPathParams)
Implementations
impl RawPathParamsRejection
fn body_text(&self) -> StringGet the response body text used for this rejection.
fn status(&self) -> StatusCodeGet the status code used for this rejection.
Trait Implementations
impl Debug for RawPathParamsRejection
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for RawPathParamsRejection
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for RawPathParamsRejection
fn source(&self) -> Option<&dyn Error + 'static>
impl From<InvalidUtf8InPathParam> for RawPathParamsRejection
fn from(inner: InvalidUtf8InPathParam) -> Self
impl From<MissingPathParams> for RawPathParamsRejection
fn from(inner: MissingPathParams) -> Self
impl IntoResponse for RawPathParamsRejection
fn into_response(self) -> Response
Auto Trait Implementations
impl Freeze for RawPathParamsRejection
impl RefUnwindSafe for RawPathParamsRejection
impl Send for RawPathParamsRejection
impl Sync for RawPathParamsRejection
impl Unpin for RawPathParamsRejection
impl UnsafeUnpin for RawPathParamsRejection
impl UnwindSafe for RawPathParamsRejection
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for RawPathParamsRejection
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for RawPathParamsRejection
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for RawPathParamsRejection
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RawPathParamsRejection
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RawPathParamsRejection
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for RawPathParamsRejection
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for RawPathParamsRejection
impl<T> Read<Exclusive, BecauseExclusive> for RawPathParamsRejection
where
T: ?Sized,
impl<T> Same for RawPathParamsRejection
type Output = T;
impl<T> ToString for RawPathParamsRejection
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T> WithSubscriber for RawPathParamsRejection
impl<T, U> Into<U> for RawPathParamsRejection
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RawPathParamsRejection
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for RawPathParamsRejection
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for RawPathParamsRejection
where
V: MultiLane<T>,
fn vzip(self) -> V