pub enum SetDomainError {
SetHostError(SetHostError),
Other,
}Expand description
The enum of errors BetterUrl::set_domain can return.
Variants§
SetHostError(SetHostError)
Returned when the call to BetterUrl::set_host returns an error.
Other
One of the many other errors that can happen.
Trait Implementations§
Source§impl Debug for SetDomainError
impl Debug for SetDomainError
Source§impl Display for SetDomainError
impl Display for SetDomainError
Source§impl Error for SetDomainError
impl Error for SetDomainError
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<SetDomainError> for InsertDomainSegmentError
impl From<SetDomainError> for InsertDomainSegmentError
Source§fn from(source: SetDomainError) -> Self
fn from(source: SetDomainError) -> Self
Converts to this type from the input type.
Source§impl From<SetDomainError> for SetDomainSegmentError
impl From<SetDomainError> for SetDomainSegmentError
Source§fn from(source: SetDomainError) -> Self
fn from(source: SetDomainError) -> Self
Converts to this type from the input type.
Source§impl From<SetHostError> for SetDomainError
impl From<SetHostError> for SetDomainError
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 SetDomainError
impl RefUnwindSafe for SetDomainError
impl Send for SetDomainError
impl Sync for SetDomainError
impl Unpin for SetDomainError
impl UnwindSafe for SetDomainError
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