Trait asyncio::ip::IpProtocol
[−]
[src]
pub trait IpProtocol: Protocol { fn is_v4(&self) -> bool; fn is_v6(&self) -> bool; fn v4() -> Self; fn v6() -> Self; }
A category of an internet protocol.
Required Methods
fn is_v4(&self) -> bool
Returns true if the protocol associated IP-v4 address.
fn is_v6(&self) -> bool
Returns true if the protocol associated IP-v6 address.
fn v4() -> Self
Returns a IP-v4 protocol.
fn v6() -> Self
Returns a IP-v6 protocol.