Enum uriparse::authority::InvalidAuthority
source · #[non_exhaustive]
pub enum InvalidAuthority {
InvalidHost(InvalidHost),
InvalidPort(InvalidPort),
InvalidUserInfo(InvalidUserInfo),
}
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.
InvalidHost(InvalidHost)
The host component of the authority was invalid.
InvalidPort(InvalidPort)
The port component of the authority was invalid.
InvalidUserInfo(InvalidUserInfo)
The user information component of the authority was invalid.
Trait Implementations
sourceimpl Clone for InvalidAuthority
impl Clone for InvalidAuthority
sourcefn clone(&self) -> InvalidAuthority
fn clone(&self) -> InvalidAuthority
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InvalidAuthority
impl Debug for InvalidAuthority
sourceimpl Display for InvalidAuthority
impl Display for InvalidAuthority
sourceimpl Error for InvalidAuthority
impl Error for InvalidAuthority
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl From<!> for InvalidAuthority
impl From<!> for InvalidAuthority
sourceimpl From<InvalidAuthority> for InvalidRelativeReference
impl From<InvalidAuthority> for InvalidRelativeReference
sourcefn from(value: InvalidAuthority) -> Self
fn from(value: InvalidAuthority) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidAuthority> for InvalidURI
impl From<InvalidAuthority> for InvalidURI
sourcefn from(value: InvalidAuthority) -> Self
fn from(value: InvalidAuthority) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidAuthority> for InvalidURIReference
impl From<InvalidAuthority> for InvalidURIReference
sourcefn from(value: InvalidAuthority) -> Self
fn from(value: InvalidAuthority) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidHost> for InvalidAuthority
impl From<InvalidHost> for InvalidAuthority
sourcefn from(value: InvalidHost) -> Self
fn from(value: InvalidHost) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidPort> for InvalidAuthority
impl From<InvalidPort> for InvalidAuthority
sourcefn from(value: InvalidPort) -> Self
fn from(value: InvalidPort) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidUserInfo> for InvalidAuthority
impl From<InvalidUserInfo> for InvalidAuthority
sourcefn from(value: InvalidUserInfo) -> Self
fn from(value: InvalidUserInfo) -> Self
Converts to this type from the input type.
sourceimpl Hash for InvalidAuthority
impl Hash for InvalidAuthority
sourceimpl PartialEq<InvalidAuthority> for InvalidAuthority
impl PartialEq<InvalidAuthority> for InvalidAuthority
sourcefn eq(&self, other: &InvalidAuthority) -> bool
fn eq(&self, other: &InvalidAuthority) -> bool
impl Copy for InvalidAuthority
impl Eq for InvalidAuthority
impl StructuralEq for InvalidAuthority
impl StructuralPartialEq for InvalidAuthority
Auto Trait Implementations
impl RefUnwindSafe for InvalidAuthority
impl Send for InvalidAuthority
impl Sync for InvalidAuthority
impl Unpin for InvalidAuthority
impl UnwindSafe for InvalidAuthority
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more