pub enum SafePathRejection {
TraversalAttack,
PathExtraction(PathRejection),
}Expand description
Rejection type for SafePath.
Variants§
TraversalAttack
Possible traversal attack detected
PathExtraction(PathRejection)
The underlying Path extractor failed
Trait Implementations§
Source§impl Debug for SafePathRejection
impl Debug for SafePathRejection
Source§impl Display for SafePathRejection
impl Display for SafePathRejection
Source§impl Error for SafePathRejection
impl Error for SafePathRejection
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl IntoResponse for SafePathRejection
impl IntoResponse for SafePathRejection
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for SafePathRejection
impl RefUnwindSafe for SafePathRejection
impl Send for SafePathRejection
impl Sync for SafePathRejection
impl Unpin for SafePathRejection
impl UnwindSafe for SafePathRejection
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