pub enum SetFqdnError {
NoHost,
HostIsNotADomain,
}Expand description
The enum of errors BetterUrl::set_fqdn can return.
Variants§
NoHost
Returned when the URL doesn’t have a host.
HostIsNotADomain
Returned when the URL’s host isn’t a domain.
Trait Implementations§
Source§impl Debug for SetFqdnError
impl Debug for SetFqdnError
Source§impl Display for SetFqdnError
impl Display for SetFqdnError
Source§impl Error for SetFqdnError
impl Error for SetFqdnError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for SetFqdnError
impl RefUnwindSafe for SetFqdnError
impl Send for SetFqdnError
impl Sync for SetFqdnError
impl Unpin for SetFqdnError
impl UnwindSafe for SetFqdnError
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