#[non_exhaustive]pub enum PathRefusal {
NotOriginForm,
Malformed,
DotSegment,
AmbiguousSegment,
EmptySegment,
}Expand description
Why a request’s path is refused rather than matched.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotOriginForm
Not an origin-form path (/…): absolute form, *, or empty.
Malformed
A byte outside visible ASCII, a \, a #, or a malformed %XX.
DotSegment
A segment that is, or decodes to, . or ...
AmbiguousSegment
A segment that decodes to /, \, %, ;, a control byte or
invalid UTF-8, or holds a ;.
EmptySegment
//: an empty segment before the end.
Trait Implementations§
Source§impl Clone for PathRefusal
impl Clone for PathRefusal
Source§impl Debug for PathRefusal
impl Debug for PathRefusal
Source§impl Display for PathRefusal
impl Display for PathRefusal
impl Eq for PathRefusal
Source§impl PartialEq for PathRefusal
impl PartialEq for PathRefusal
impl StructuralPartialEq for PathRefusal
Auto Trait Implementations§
impl Freeze for PathRefusal
impl RefUnwindSafe for PathRefusal
impl Send for PathRefusal
impl Sync for PathRefusal
impl Unpin for PathRefusal
impl UnsafeUnpin for PathRefusal
impl UnwindSafe for PathRefusal
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