pub enum NetworkAddressParseError {
InvalidIp,
InvalidPort,
MissingPort,
}Expand description
Error parsing a network address from string.
Variants§
InvalidIp
The IP address could not be parsed.
InvalidPort
The port number could not be parsed.
MissingPort
No port separator (:) found in the input.
Trait Implementations§
Source§impl Clone for NetworkAddressParseError
impl Clone for NetworkAddressParseError
Source§fn clone(&self) -> NetworkAddressParseError
fn clone(&self) -> NetworkAddressParseError
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 NetworkAddressParseError
impl Debug for NetworkAddressParseError
Source§impl Display for NetworkAddressParseError
impl Display for NetworkAddressParseError
Source§impl Error for NetworkAddressParseError
impl Error for NetworkAddressParseError
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 NetworkAddressParseError
impl RefUnwindSafe for NetworkAddressParseError
impl Send for NetworkAddressParseError
impl Sync for NetworkAddressParseError
impl Unpin for NetworkAddressParseError
impl UnsafeUnpin for NetworkAddressParseError
impl UnwindSafe for NetworkAddressParseError
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