pub enum RequestTargetError {
Empty,
NotOriginForm,
TooLong,
InvalidByte,
}Expand description
Request-target validation error.
Variants§
Empty
Request targets must not be empty.
NotOriginForm
Request targets must start with /.
TooLong
Request targets exceed MAX_REQUEST_TARGET_BYTES.
InvalidByte
Request targets contain a control, space, non-ASCII, fragment, or backslash byte.
Trait Implementations§
Source§impl Clone for RequestTargetError
impl Clone for RequestTargetError
Source§fn clone(&self) -> RequestTargetError
fn clone(&self) -> RequestTargetError
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 RequestTargetError
Source§impl Debug for RequestTargetError
impl Debug for RequestTargetError
impl Eq for RequestTargetError
Source§impl PartialEq for RequestTargetError
impl PartialEq for RequestTargetError
impl StructuralPartialEq for RequestTargetError
Auto Trait Implementations§
impl Freeze for RequestTargetError
impl RefUnwindSafe for RequestTargetError
impl Send for RequestTargetError
impl Sync for RequestTargetError
impl Unpin for RequestTargetError
impl UnsafeUnpin for RequestTargetError
impl UnwindSafe for RequestTargetError
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