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 Ord for Endpoint
impl Ord for Endpoint
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)