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