pub enum RequestPathError {
Empty,
NotOriginForm,
TooLong,
InvalidByte,
DoubledSlash,
DotSegment,
InvalidPercentTriplet,
LowercasePercentHex,
EncodedSeparator,
EncodedControl,
EncodedUnreserved,
}Expand description
Canonical path validation error.
Variants§
Empty
Paths must not be empty.
NotOriginForm
Paths must start with exactly one /.
TooLong
Paths exceed MAX_REQUEST_TARGET_BYTES.
InvalidByte
A raw byte is outside the admitted ASCII path grammar.
DoubledSlash
Adjacent / separators are forbidden.
DotSegment
. and .. segments are forbidden.
InvalidPercentTriplet
A percent triplet is incomplete or malformed.
LowercasePercentHex
Percent hexadecimal digits must be uppercase.
EncodedSeparator
A percent triplet encodes a structural separator.
EncodedControl
A percent triplet encodes a control byte.
EncodedUnreserved
An unreserved byte was needlessly percent encoded.
Trait Implementations§
Source§impl Clone for RequestPathError
impl Clone for RequestPathError
Source§fn clone(&self) -> RequestPathError
fn clone(&self) -> RequestPathError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RequestPathError
Source§impl Debug for RequestPathError
impl Debug for RequestPathError
Source§impl Display for RequestPathError
impl Display for RequestPathError
impl Eq for RequestPathError
Source§impl Error for RequestPathError
impl Error for RequestPathError
1.30.0 · 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 PartialEq for RequestPathError
impl PartialEq for RequestPathError
impl StructuralPartialEq for RequestPathError
Auto Trait Implementations§
impl Freeze for RequestPathError
impl RefUnwindSafe for RequestPathError
impl Send for RequestPathError
impl Sync for RequestPathError
impl Unpin for RequestPathError
impl UnsafeUnpin for RequestPathError
impl UnwindSafe for RequestPathError
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