Struct asio::ip::Icmp [] [src]

pub struct Icmp {
    // some fields omitted
}

The Internet Control Message Protocol (v6).

Methods

impl Icmp
[src]

fn v4() -> Icmp

Represents a ICMP.

fn v6() -> Icmp

Represents a ICMPv6.

Trait Implementations

impl Debug for Icmp
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for Icmp
[src]

fn eq(&self, __arg_0: &Icmp) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Icmp) -> bool

This method tests for !=.

impl Eq for Icmp
[src]

impl Clone for Icmp
[src]

fn clone(&self) -> Icmp

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Protocol for Icmp
[src]

type Endpoint = IpEndpoint<Icmp>

fn family_type(&self) -> i32

Returns a value suitable for passing as the domain argument.

fn socket_type(&self) -> i32

Returns a value suitable for passing as the type argument.

fn protocol_type(&self) -> i32

Returns a value suitable for passing as the protocol argument.

impl IpProtocol for Icmp
[src]

fn v4() -> Self

fn v6() -> Self

fn is_v4(&self) -> bool

fn is_v6(&self) -> bool