Struct IpEndpoint
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§
§impl From<Endpoint> for ListenEndpoint
impl From<Endpoint> for ListenEndpoint
§fn from(endpoint: Endpoint) -> ListenEndpoint
fn from(endpoint: Endpoint) -> ListenEndpoint
Converts to this type from the input type.
§impl From<SocketAddr> for Endpoint
Available on crate features proto-ipv4
and proto-ipv6
only.
impl From<SocketAddr> for Endpoint
Available on crate features
proto-ipv4
and proto-ipv6
only.§fn from(x: SocketAddr) -> Endpoint
fn from(x: SocketAddr) -> Endpoint
Converts to this type from the input type.
§impl From<SocketAddrV4> for Endpoint
Available on crate feature proto-ipv4
only.
impl From<SocketAddrV4> for Endpoint
Available on crate feature
proto-ipv4
only.§fn from(x: SocketAddrV4) -> Endpoint
fn from(x: SocketAddrV4) -> Endpoint
Converts to this type from the input type.
§impl From<SocketAddrV6> for Endpoint
Available on crate feature proto-ipv6
only.
impl From<SocketAddrV6> for Endpoint
Available on crate feature
proto-ipv6
only.§fn from(x: SocketAddrV6) -> Endpoint
fn from(x: SocketAddrV6) -> Endpoint
Converts to this type from the input type.
§impl Ord for Endpoint
impl Ord for Endpoint
§impl PartialOrd for Endpoint
impl PartialOrd for Endpoint
impl Copy for Endpoint
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
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