pub enum SetDomainMiddleError {
HostIsNotADomain,
MissingDomainSuffix,
SetHostError(SetHostError),
}Expand description
The enum of errors BetterUrl::set_domain_middle can return.
Variants§
HostIsNotADomain
Returned when the BetterUrl’s host isn’t a domain.
MissingDomainSuffix
Returned when trying to set the domain middle on a domain without a domain suffix.
SetHostError(SetHostError)
Returned when the resulting value isn’t parsable as a domain.
Trait Implementations§
Source§impl Debug for SetDomainMiddleError
impl Debug for SetDomainMiddleError
Source§impl Display for SetDomainMiddleError
impl Display for SetDomainMiddleError
Source§impl Error for SetDomainMiddleError
impl Error for SetDomainMiddleError
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<SetHostError> for SetDomainMiddleError
impl From<SetHostError> for SetDomainMiddleError
Source§fn from(source: SetHostError) -> Self
fn from(source: SetHostError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SetDomainMiddleError
impl RefUnwindSafe for SetDomainMiddleError
impl Send for SetDomainMiddleError
impl Sync for SetDomainMiddleError
impl Unpin for SetDomainMiddleError
impl UnwindSafe for SetDomainMiddleError
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