Enum PathRejection

#[non_exhaustive]
pub enum PathRejection

Rejection used for Path.

Contains one variant for each way the Path extractor can fail.

Variants

FailedToDeserializePathParams(FailedToDeserializePathParams)
MissingPathParams(MissingPathParams)

Implementations

impl PathRejection

fn body_text(&self) -> String

Get the response body text used for this rejection.

fn status(&self) -> StatusCode

Get the status code used for this rejection.

Trait Implementations

impl Debug for PathRejection

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for PathRejection

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Error for PathRejection

fn source(&self) -> Option<&dyn Error + 'static>

impl From<FailedToDeserializePathParams> for PathRejection

fn from(inner: FailedToDeserializePathParams) -> Self

impl From<MissingPathParams> for PathRejection

fn from(inner: MissingPathParams) -> Self

impl IntoResponse for PathRejection

fn into_response(self) -> Response

Auto Trait Implementations

impl Freeze for PathRejection

impl RefUnwindSafe for PathRejection

impl Send for PathRejection

impl Sync for PathRejection

impl Unpin for PathRejection

impl UnsafeUnpin for PathRejection

impl UnwindSafe for PathRejection

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for PathRejection where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for PathRejection where ST: ?Sized, DT: ?Sized,

impl<T> Any for PathRejection where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for PathRejection where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for PathRejection where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for PathRejection

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for PathRejection

impl<T> Read<Exclusive, BecauseExclusive> for PathRejection where T: ?Sized,

impl<T> Same for PathRejection

type Output = T;

impl<T> ToString for PathRejection where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T> WithSubscriber for PathRejection

impl<T, U> Into<U> for PathRejection where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for PathRejection where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for PathRejection 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 PathRejection where V: MultiLane<T>,

fn vzip(self) -> V