pub enum StdConversionError {
NotIpAddress,
PortZero,
}Available on crate feature
net only.Expand description
Error type for std::net::SocketAddr conversion.
Variants§
NotIpAddress
Host is not an IP address (domain name or hostname)
PortZero
Port is zero (std::net::SocketAddr allows port 0, but our Port type does not)
Trait Implementations§
Source§impl Clone for StdConversionError
impl Clone for StdConversionError
Source§fn clone(&self) -> StdConversionError
fn clone(&self) -> StdConversionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StdConversionError
impl Debug for StdConversionError
Source§impl Display for StdConversionError
impl Display for StdConversionError
Source§impl Error for StdConversionError
Available on crate feature std only.
impl Error for StdConversionError
Available on crate feature
std only.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 PartialEq for StdConversionError
impl PartialEq for StdConversionError
impl Eq for StdConversionError
impl StructuralPartialEq for StdConversionError
Auto Trait Implementations§
impl Freeze for StdConversionError
impl RefUnwindSafe for StdConversionError
impl Send for StdConversionError
impl Sync for StdConversionError
impl Unpin for StdConversionError
impl UnwindSafe for StdConversionError
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