pub enum RequestTargetError {
Empty,
NotOriginForm,
ContainsWhitespace,
AbsoluteUri,
AuthorityForm,
AsteriskForm,
}Expand description
Errors from request target validation.
Variants§
Empty
The target is empty.
NotOriginForm
The target is not valid origin-form (does not start with /).
ContainsWhitespace
The target contains whitespace.
AbsoluteUri
The target is an absolute URI (contains ://).
AuthorityForm
The target is an authority-form URI (contains @ without /).
AsteriskForm
The target is an asterisk-form (*).
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 moreSource§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 From<RequestTargetError> for RequestHeadError
impl From<RequestTargetError> for RequestHeadError
Source§fn from(e: RequestTargetError) -> Self
fn from(e: RequestTargetError) -> Self
Converts to this type from the input type.
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