Trait asyncio::ip::ToEndpoint
[−]
[src]
pub trait ToEndpoint<P: Protocol> { fn to_endpoint(self, port: u16) -> IpEndpoint<P>; }
Provides conversion to a IP-endpoint.
Required Methods
fn to_endpoint(self, port: u16) -> IpEndpoint<P>
Implementors
impl<P: IpProtocol> ToEndpoint<P> for P
impl<P: Protocol> ToEndpoint<P> for IpAddrV4
impl<P: Protocol> ToEndpoint<P> for IpAddrV6
impl<P: Protocol> ToEndpoint<P> for IpAddr
impl<'a, P: IpProtocol> ToEndpoint<P> for &'a P
impl<'a, P: Protocol> ToEndpoint<P> for &'a IpAddrV4
impl<'a, P: Protocol> ToEndpoint<P> for &'a IpAddrV6
impl<'a, P: Protocol> ToEndpoint<P> for &'a IpAddr