#[non_exhaustive]pub struct NestedPathRejection;
Expand description
Rejection type for NestedPath
.
This rejection is used if the matched route wasn’t nested.
Implementations§
§impl NestedPathRejection
impl NestedPathRejection
pub fn status(&self) -> StatusCode
pub fn status(&self) -> StatusCode
Get the status code used for this rejection.
Trait Implementations§
§impl Debug for NestedPathRejection
impl Debug for NestedPathRejection
§impl Default for NestedPathRejection
impl Default for NestedPathRejection
§fn default() -> NestedPathRejection
fn default() -> NestedPathRejection
Returns the “default value” for a type. Read more
§impl Display for NestedPathRejection
impl Display for NestedPathRejection
§impl Error for NestedPathRejection
impl Error for NestedPathRejection
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 IntoResponse for NestedPathRejection
impl IntoResponse for NestedPathRejection
§fn into_response(self) -> Response<Body>
fn into_response(self) -> Response<Body>
Create a response.
Auto Trait Implementations§
impl Freeze for NestedPathRejection
impl RefUnwindSafe for NestedPathRejection
impl Send for NestedPathRejection
impl Sync for NestedPathRejection
impl Unpin for NestedPathRejection
impl UnwindSafe for NestedPathRejection
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