Struct netidx_core::utils::Addr
source · pub struct Addr(pub SocketAddr);
Tuple Fields§
§0: SocketAddr
Trait Implementations§
source§impl Borrow<SocketAddr> for Addr
impl Borrow<SocketAddr> for Addr
source§fn borrow(&self) -> &SocketAddr
fn borrow(&self) -> &SocketAddr
Immutably borrows from an owned value. Read more
source§impl From<SocketAddr> for Addr
impl From<SocketAddr> for Addr
source§fn from(addr: SocketAddr) -> Self
fn from(addr: SocketAddr) -> Self
Converts to this type from the input type.
source§impl Ord for Addr
impl Ord for Addr
source§impl PartialEq<Addr> for Addr
impl PartialEq<Addr> for Addr
source§impl PartialOrd<Addr> for Addr
impl PartialOrd<Addr> for Addr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more