Trait asio::ip::IpProtocol [] [src]

pub trait IpProtocol: Protocol {
    fn v4() -> Self;
    fn v6() -> Self;

    fn is_v4(&self) -> bool { ... }
    fn is_v6(&self) -> bool { ... }
}

A category of an internet protocol.

Required Methods

fn v4() -> Self

fn v6() -> Self

Provided Methods

fn is_v4(&self) -> bool

fn is_v6(&self) -> bool

Implementors