Struct asyncio::ip::Icmp
[−]
[src]
pub struct Icmp { /* fields omitted */ }
The Internet Control Message Protocol (v6).
Methods
impl Icmp
[src]
fn v4() -> Icmp
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());
fn v6() -> Icmp
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]
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 Eq for Icmp
[src]
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 Debug for Icmp
[src]
impl Protocol for Icmp
[src]
type Endpoint = IpEndpoint<Self>
fn family_type(&self) -> i32
Reurns 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.