pub enum SocketAddrError {
MissingPortSeparator,
InvalidHost,
InvalidPort,
EmptyInput,
}Available on crate feature
net only.Expand description
Error type for socket address parsing.
Variants§
MissingPortSeparator
Missing port separator (‘:’)
InvalidHost
Invalid host part
InvalidPort
Invalid port part
EmptyInput
Empty input
Trait Implementations§
Source§impl Clone for SocketAddrError
impl Clone for SocketAddrError
Source§fn clone(&self) -> SocketAddrError
fn clone(&self) -> SocketAddrError
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 SocketAddrError
impl Debug for SocketAddrError
Source§impl Display for SocketAddrError
impl Display for SocketAddrError
Source§impl Error for SocketAddrError
Available on crate feature std only.
impl Error for SocketAddrError
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 SocketAddrError
impl PartialEq for SocketAddrError
impl Eq for SocketAddrError
impl StructuralPartialEq for SocketAddrError
Auto Trait Implementations§
impl Freeze for SocketAddrError
impl RefUnwindSafe for SocketAddrError
impl Send for SocketAddrError
impl Sync for SocketAddrError
impl Unpin for SocketAddrError
impl UnwindSafe for SocketAddrError
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