Struct asyncio::ip::Icmp [] [src]

pub struct Icmp { /* fields omitted */ }

The Internet Control Message Protocol (v6).

Methods

impl Icmp
[src]

Represents a ICMP.

Examples

use asyncio::Endpoint;
use asyncio::ip::{Icmp, IcmpEndpoint, IpAddrV4};

let ep = IcmpEndpoint::new(IpAddrV4::any(), 0);
assert_eq!(Icmp::v4(), ep.protocol());

Represents a ICMPv6.

Examples

use asyncio::Endpoint;
use asyncio::ip::{Icmp, IcmpEndpoint, IpAddrV6};

let ep = IcmpEndpoint::new(IpAddrV6::any(), 0);
assert_eq!(Icmp::v6(), ep.protocol());

Trait Implementations

impl Clone for Icmp
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Icmp
[src]

impl PartialEq for Icmp
[src]

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

This method tests for !=.

impl Debug for Icmp
[src]

Formats the value using the given formatter.

impl Protocol for Icmp
[src]

Reurns a value suitable for passing as the domain argument.

Returns a value suitable for passing as the type argument.

Returns a value suitable for passing as the protocol argument.

impl IpProtocol for Icmp
[src]

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.