pub enum SetRegDomainError {
HostIsNotADomain,
SetHostError(SetHostError),
}Expand description
The enum of errors BetterUrl::set_reg_domain 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 SetRegDomainError
impl Debug for SetRegDomainError
Source§impl Display for SetRegDomainError
impl Display for SetRegDomainError
Source§impl Error for SetRegDomainError
impl Error for SetRegDomainError
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 SetRegDomainError
impl From<SetHostError> for SetRegDomainError
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 SetRegDomainError
impl RefUnwindSafe for SetRegDomainError
impl Send for SetRegDomainError
impl Sync for SetRegDomainError
impl Unpin for SetRegDomainError
impl UnwindSafe for SetRegDomainError
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