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

pub struct Icmp {
    // some fields omitted
}

Encapsulates the flags needed for ICMP(v6).

Methods

impl Icmp
[src]

fn v4() -> Icmp

Make the ICMP.

Example

use asio::ip::Icmp;
let pro = Icmp::v4();

fn v6() -> Icmp

Make the ICMPv6.

Example

use asio::ip::Icmp;
let pro = Icmp::v6();

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]

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.