#[non_exhaustive]pub enum UriInfoError {
Empty,
MissingAngleBrackets(String),
}Expand description
Errors from parsing a URI-info-style header value.
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 input string was empty or whitespace-only.
MissingAngleBrackets(String)
An entry was found without angle brackets around the URI.
Trait Implementations§
Source§impl Clone for UriInfoError
impl Clone for UriInfoError
Source§fn clone(&self) -> UriInfoError
fn clone(&self) -> UriInfoError
Returns a duplicate of the value. Read more
1.0.0 · 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 UriInfoError
impl Debug for UriInfoError
Source§impl Display for UriInfoError
impl Display for UriInfoError
Source§impl Error for UriInfoError
impl Error for UriInfoError
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 UriInfoError
impl PartialEq for UriInfoError
impl Eq for UriInfoError
impl StructuralPartialEq for UriInfoError
Auto Trait Implementations§
impl Freeze for UriInfoError
impl RefUnwindSafe for UriInfoError
impl Send for UriInfoError
impl Sync for UriInfoError
impl Unpin for UriInfoError
impl UnsafeUnpin for UriInfoError
impl UnwindSafe for UriInfoError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.