pub struct InvalidHost;Expand description
Returned when attempting to parse an invalid Host.
Trait Implementations§
Source§impl Debug for InvalidHost
impl Debug for InvalidHost
Source§impl Display for InvalidHost
impl Display for InvalidHost
Source§impl Error for InvalidHost
impl Error for InvalidHost
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()
Source§impl From<!> for InvalidHost
impl From<!> for InvalidHost
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<InvalidDomainHost> for InvalidHost
impl From<InvalidDomainHost> for InvalidHost
Source§fn from(_: InvalidDomainHost) -> Self
fn from(_: InvalidDomainHost) -> Self
Converts to this type from the input type.
Source§impl From<InvalidEmptyHost> for InvalidHost
impl From<InvalidEmptyHost> for InvalidHost
Source§fn from(_: InvalidEmptyHost) -> Self
fn from(_: InvalidEmptyHost) -> Self
Converts to this type from the input type.
Source§impl From<InvalidFileHost> for InvalidHost
impl From<InvalidFileHost> for InvalidHost
Source§fn from(_: InvalidFileHost) -> Self
fn from(_: InvalidFileHost) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHost> for SetHostError
impl From<InvalidHost> for SetHostError
Source§fn from(source: InvalidHost) -> Self
fn from(source: InvalidHost) -> Self
Converts to this type from the input type.
Source§impl From<InvalidIpv4Host> for InvalidHost
impl From<InvalidIpv4Host> for InvalidHost
Source§fn from(_: InvalidIpv4Host) -> Self
fn from(_: InvalidIpv4Host) -> Self
Converts to this type from the input type.
Source§impl From<InvalidIpv6Host> for InvalidHost
impl From<InvalidIpv6Host> for InvalidHost
Source§fn from(_: InvalidIpv6Host) -> Self
fn from(_: InvalidIpv6Host) -> Self
Converts to this type from the input type.
Source§impl From<InvalidNonSpecialHost> for InvalidHost
impl From<InvalidNonSpecialHost> for InvalidHost
Source§fn from(_: InvalidNonSpecialHost) -> Self
fn from(_: InvalidNonSpecialHost) -> Self
Converts to this type from the input type.
Source§impl From<InvalidOpaqueHost> for InvalidHost
impl From<InvalidOpaqueHost> for InvalidHost
Source§fn from(_: InvalidOpaqueHost) -> Self
fn from(_: InvalidOpaqueHost) -> Self
Converts to this type from the input type.
Source§impl From<InvalidSpecialNotFileHost> for InvalidHost
impl From<InvalidSpecialNotFileHost> for InvalidHost
Source§fn from(_: InvalidSpecialNotFileHost) -> Self
fn from(_: InvalidSpecialNotFileHost) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidHost
impl RefUnwindSafe for InvalidHost
impl Send for InvalidHost
impl Sync for InvalidHost
impl Unpin for InvalidHost
impl UnsafeUnpin for InvalidHost
impl UnwindSafe for InvalidHost
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