pub enum SetNotDomainSuffixError {
HostIsNotADomain,
MissingDomainSuffix,
SetHostError(SetHostError),
}Expand description
The enum of errors BetterUrl::set_not_domain_suffix can return.
Variants§
HostIsNotADomain
Returned when the BetterUrl’s host isn’t a domain.
MissingDomainSuffix
Returned when trying to set the not domain suffix 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 SetNotDomainSuffixError
impl Debug for SetNotDomainSuffixError
Source§impl Display for SetNotDomainSuffixError
impl Display for SetNotDomainSuffixError
Source§impl Error for SetNotDomainSuffixError
impl Error for SetNotDomainSuffixError
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 SetNotDomainSuffixError
impl From<SetHostError> for SetNotDomainSuffixError
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 SetNotDomainSuffixError
impl RefUnwindSafe for SetNotDomainSuffixError
impl Send for SetNotDomainSuffixError
impl Sync for SetNotDomainSuffixError
impl Unpin for SetNotDomainSuffixError
impl UnwindSafe for SetNotDomainSuffixError
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