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 FromStr for IpEndpoint
impl FromStr for IpEndpoint
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