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