pub enum UserAgentError {
Empty,
TooLong,
Invalid,
}Expand description
User-agent validation error.
Variants§
Empty
User agents must not be empty.
TooLong
User agents are capped at 256 bytes.
Invalid
The value is not a valid HTTP header value.
Trait Implementations§
Source§impl Clone for UserAgentError
impl Clone for UserAgentError
Source§fn clone(&self) -> UserAgentError
fn clone(&self) -> UserAgentError
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 UserAgentError
Source§impl Debug for UserAgentError
impl Debug for UserAgentError
impl Eq for UserAgentError
Source§impl PartialEq for UserAgentError
impl PartialEq for UserAgentError
impl StructuralPartialEq for UserAgentError
Auto Trait Implementations§
impl Freeze for UserAgentError
impl RefUnwindSafe for UserAgentError
impl Send for UserAgentError
impl Sync for UserAgentError
impl Unpin for UserAgentError
impl UnsafeUnpin for UserAgentError
impl UnwindSafe for UserAgentError
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