Struct smoltcp::wire::IpEndpoint
source · pub struct IpEndpoint {
pub addr: Address,
pub port: u16,
}
Expand description
An internet endpoint address.
Endpoint
always fully specifies both the address and the port.
See also [‘ListenEndpoint’], which allows not specifying the address in order to listen on a given port on any address.
Fields§
§addr: Address
§port: u16
Implementations§
Trait Implementations§
source§impl From<Endpoint> for ListenEndpoint
impl From<Endpoint> for ListenEndpoint
source§fn from(endpoint: Endpoint) -> ListenEndpoint
fn from(endpoint: Endpoint) -> ListenEndpoint
Converts to this type from the input type.
source§impl From<SocketAddr> for Endpoint
impl From<SocketAddr> for Endpoint
source§fn from(x: SocketAddr) -> Endpoint
fn from(x: SocketAddr) -> Endpoint
Converts to this type from the input type.
source§impl From<SocketAddrV4> for Endpoint
impl From<SocketAddrV4> for Endpoint
source§fn from(x: SocketAddrV4) -> Endpoint
fn from(x: SocketAddrV4) -> Endpoint
Converts to this type from the input type.
source§impl From<SocketAddrV6> for Endpoint
impl From<SocketAddrV6> for Endpoint
source§fn from(x: SocketAddrV6) -> Endpoint
fn from(x: SocketAddrV6) -> Endpoint
Converts to this type from the input type.
source§impl FromStr for IpEndpoint
impl FromStr for IpEndpoint
source§impl Ord for Endpoint
impl Ord for Endpoint
source§impl PartialEq<Endpoint> for Endpoint
impl PartialEq<Endpoint> for Endpoint
source§impl PartialOrd<Endpoint> for Endpoint
impl PartialOrd<Endpoint> for Endpoint
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