pub enum SocketName {
HostName(Name, Option<u16>),
SocketAddr(SocketAddr),
IpAddr(IpAddr),
}Expand description
A potential unresolved host name, with an optional port number.
Variants§
Implementations§
Source§impl SocketName
impl SocketName
Trait Implementations§
Source§impl Clone for SocketName
impl Clone for SocketName
Source§fn clone(&self) -> SocketName
fn clone(&self) -> SocketName
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 SocketName
impl Debug for SocketName
Auto Trait Implementations§
impl Freeze for SocketName
impl RefUnwindSafe for SocketName
impl Send for SocketName
impl Sync for SocketName
impl Unpin for SocketName
impl UnwindSafe for SocketName
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