#[non_exhaustive]pub enum ClientIdentityError {
Empty {
field: &'static str,
},
InvalidHeaderValue {
field: &'static str,
},
}Expand description
Error returned when a client identity cannot be represented in Inline headers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
The given field is empty after trimming whitespace.
InvalidHeaderValue
The given field contains bytes rejected by HeaderValue.
Trait Implementations§
Source§impl Clone for ClientIdentityError
impl Clone for ClientIdentityError
Source§fn clone(&self) -> ClientIdentityError
fn clone(&self) -> ClientIdentityError
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 ClientIdentityError
impl Debug for ClientIdentityError
Source§impl Display for ClientIdentityError
impl Display for ClientIdentityError
impl Eq for ClientIdentityError
Source§impl Error for ClientIdentityError
impl Error for ClientIdentityError
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 ClientIdentityError
impl PartialEq for ClientIdentityError
Source§fn eq(&self, other: &ClientIdentityError) -> bool
fn eq(&self, other: &ClientIdentityError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientIdentityError
Auto Trait Implementations§
impl Freeze for ClientIdentityError
impl RefUnwindSafe for ClientIdentityError
impl Send for ClientIdentityError
impl Sync for ClientIdentityError
impl Unpin for ClientIdentityError
impl UnsafeUnpin for ClientIdentityError
impl UnwindSafe for ClientIdentityError
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