#[non_exhaustive]pub enum AuthorityError {
Host(HostError),
Password(PasswordError),
Port(PortError),
Username(UsernameError),
}Expand description
An error representing an invalid authority.
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.
Host(HostError)
The host component of the authority was invalid.
Password(PasswordError)
The password component of the authority was invalid.
Port(PortError)
The port component of the authority was invalid.
Username(UsernameError)
The username component of the authority was invalid.
Trait Implementations§
Source§impl Clone for AuthorityError
impl Clone for AuthorityError
Source§fn clone(&self) -> AuthorityError
fn clone(&self) -> AuthorityError
Returns a copy 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 AuthorityError
impl Debug for AuthorityError
Source§impl Display for AuthorityError
impl Display for AuthorityError
Source§impl Error for AuthorityError
impl Error for AuthorityError
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<AuthorityError> for RelativeReferenceError
impl From<AuthorityError> for RelativeReferenceError
Source§fn from(value: AuthorityError) -> Self
fn from(value: AuthorityError) -> Self
Converts to this type from the input type.
Source§impl From<AuthorityError> for URIError
impl From<AuthorityError> for URIError
Source§fn from(value: AuthorityError) -> Self
fn from(value: AuthorityError) -> Self
Converts to this type from the input type.
Source§impl From<AuthorityError> for URIReferenceError
impl From<AuthorityError> for URIReferenceError
Source§fn from(value: AuthorityError) -> Self
fn from(value: AuthorityError) -> Self
Converts to this type from the input type.
Source§impl From<HostError> for AuthorityError
impl From<HostError> for AuthorityError
Source§impl From<Infallible> for AuthorityError
impl From<Infallible> for AuthorityError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<PasswordError> for AuthorityError
impl From<PasswordError> for AuthorityError
Source§fn from(value: PasswordError) -> Self
fn from(value: PasswordError) -> Self
Converts to this type from the input type.
Source§impl From<PortError> for AuthorityError
impl From<PortError> for AuthorityError
Source§impl From<UsernameError> for AuthorityError
impl From<UsernameError> for AuthorityError
Source§fn from(value: UsernameError) -> Self
fn from(value: UsernameError) -> Self
Converts to this type from the input type.
Source§impl Hash for AuthorityError
impl Hash for AuthorityError
Source§impl PartialEq for AuthorityError
impl PartialEq for AuthorityError
impl Copy for AuthorityError
impl Eq for AuthorityError
impl StructuralPartialEq for AuthorityError
Auto Trait Implementations§
impl Freeze for AuthorityError
impl RefUnwindSafe for AuthorityError
impl Send for AuthorityError
impl Sync for AuthorityError
impl Unpin for AuthorityError
impl UnwindSafe for AuthorityError
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