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
Source§impl Display for RequestTargetError
impl Display for RequestTargetError
impl Eq for RequestTargetError
Source§impl Error for RequestTargetError
impl Error for RequestTargetError
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 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