pub enum AbstractAddr {
Ip(SocketAddr),
Unix(SocketAddr),
}Expand description
Like SocketAddr
Either a SocketAddr
or std::os::unix::net::SocketAddr
Variants§
Ip(SocketAddr)
Unix(SocketAddr)
Implementations§
Trait Implementations§
Source§impl AbstractToSocketAddrs for AbstractAddr
impl AbstractToSocketAddrs for AbstractAddr
Source§fn bind_any(&self) -> Result<AbstractListener>
fn bind_any(&self) -> Result<AbstractListener>
Like TcpListener::bind
Source§fn connect_any(&self) -> Result<AbstractStream>
fn connect_any(&self) -> Result<AbstractStream>
Like TcpStream::connect
Source§impl Clone for AbstractAddr
impl Clone for AbstractAddr
Source§fn clone(&self) -> AbstractAddr
fn clone(&self) -> AbstractAddr
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 AbstractAddr
impl Debug for AbstractAddr
Source§impl Display for AbstractAddr
impl Display for AbstractAddr
Source§impl Into<AbstractAddr> for SocketAddr
impl Into<AbstractAddr> for SocketAddr
Source§fn into(self) -> AbstractAddr
fn into(self) -> AbstractAddr
Converts this type into the (usually inferred) input type.
Source§impl Into<AbstractAddr> for SocketAddr
impl Into<AbstractAddr> for SocketAddr
Source§fn into(self) -> AbstractAddr
fn into(self) -> AbstractAddr
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for AbstractAddr
impl RefUnwindSafe for AbstractAddr
impl Send for AbstractAddr
impl Sync for AbstractAddr
impl Unpin for AbstractAddr
impl UnwindSafe for AbstractAddr
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