pub struct Icmp { /* private fields */ }
Expand description
The Internet Control Message Protocol.
Trait Implementations§
Source§impl IpProtocol for Icmp
impl IpProtocol for Icmp
Source§fn v4() -> Icmp
fn v4() -> Icmp
Represents a ICMP.
§Examples
use asyncio::Endpoint;
use asyncio::ip::{IpProtocol, IpAddrV4, Icmp, IcmpEndpoint};
let ep = IcmpEndpoint::new(IpAddrV4::any(), 0);
assert_eq!(Icmp::v4(), ep.protocol());
Source§fn v6() -> Icmp
fn v6() -> Icmp
Represents a ICMPv6.
§Examples
use asyncio::Endpoint;
use asyncio::ip::{IpProtocol, IpAddrV6, Icmp, IcmpEndpoint};
let ep = IcmpEndpoint::new(IpAddrV6::any(), 0);
assert_eq!(Icmp::v6(), ep.protocol());
fn is_v4(&self) -> bool
fn is_v6(&self) -> bool
Source§impl Ord for Icmp
impl Ord for Icmp
Source§impl PartialOrd for Icmp
impl PartialOrd for Icmp
Source§impl Protocol for Icmp
impl Protocol for Icmp
type Endpoint = IpEndpoint<Icmp>
Source§fn family_type(&self) -> i32
fn family_type(&self) -> i32
Reurns a value suitable for passing as the domain argument.
Source§fn socket_type(&self) -> i32
fn socket_type(&self) -> i32
Returns a value suitable for passing as the type argument.
Source§fn protocol_type(&self) -> i32
fn protocol_type(&self) -> i32
Returns a value suitable for passing as the protocol argument.
unsafe fn uninitialized(&self) -> Self::Endpoint
impl Eq for Icmp
impl StructuralPartialEq for Icmp
Auto Trait Implementations§
impl Freeze for Icmp
impl RefUnwindSafe for Icmp
impl Send for Icmp
impl Sync for Icmp
impl Unpin for Icmp
impl UnwindSafe for Icmp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more