Enum uriparse::authority::AuthorityError
source · [−]#[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
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
sourceimpl Clone for AuthorityError
impl Clone for AuthorityError
sourcefn clone(&self) -> AuthorityError
fn clone(&self) -> AuthorityError
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 more
sourceimpl Debug for AuthorityError
impl Debug for AuthorityError
sourceimpl Display for AuthorityError
impl Display for AuthorityError
sourceimpl Error for AuthorityError
impl Error for AuthorityError
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<AuthorityError> for RelativeReferenceError
impl From<AuthorityError> for RelativeReferenceError
sourcefn from(value: AuthorityError) -> Self
fn from(value: AuthorityError) -> Self
Performs the conversion.
sourceimpl From<AuthorityError> for URIError
impl From<AuthorityError> for URIError
sourcefn from(value: AuthorityError) -> Self
fn from(value: AuthorityError) -> Self
Performs the conversion.
sourceimpl From<AuthorityError> for URIReferenceError
impl From<AuthorityError> for URIReferenceError
sourcefn from(value: AuthorityError) -> Self
fn from(value: AuthorityError) -> Self
Performs the conversion.
sourceimpl From<HostError> for AuthorityError
impl From<HostError> for AuthorityError
sourceimpl From<Infallible> for AuthorityError
impl From<Infallible> for AuthorityError
sourcefn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Performs the conversion.
sourceimpl From<PasswordError> for AuthorityError
impl From<PasswordError> for AuthorityError
sourcefn from(value: PasswordError) -> Self
fn from(value: PasswordError) -> Self
Performs the conversion.
sourceimpl From<PortError> for AuthorityError
impl From<PortError> for AuthorityError
sourceimpl From<UsernameError> for AuthorityError
impl From<UsernameError> for AuthorityError
sourcefn from(value: UsernameError) -> Self
fn from(value: UsernameError) -> Self
Performs the conversion.
sourceimpl Hash for AuthorityError
impl Hash for AuthorityError
sourceimpl PartialEq<AuthorityError> for AuthorityError
impl PartialEq<AuthorityError> for AuthorityError
sourcefn eq(&self, other: &AuthorityError) -> bool
fn eq(&self, other: &AuthorityError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AuthorityError) -> bool
fn ne(&self, other: &AuthorityError) -> bool
This method tests for !=
.
impl Copy for AuthorityError
impl Eq for AuthorityError
impl StructuralEq for AuthorityError
impl StructuralPartialEq for AuthorityError
Auto Trait Implementations
impl RefUnwindSafe for AuthorityError
impl Send for AuthorityError
impl Sync for AuthorityError
impl Unpin for AuthorityError
impl UnwindSafe for AuthorityError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more