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

Returns true if the protocol associated IP-v4 address.

Returns true if the protocol associated IP-v6 address.

Returns a IP-v4 protocol.

Returns a IP-v6 protocol.

Implementors