pub struct Icmpv4;Expand description
ICMPv4 marker impl of IcmpVersion.
See RFC 792.
Trait Implementations§
Source§impl EncodeIcmpMessage<Icmpv4> for IcmpEchoRequest
impl EncodeIcmpMessage<Icmpv4> for IcmpEchoRequest
Source§fn encode(&mut self) -> &mut IcmpMessageBuffer
fn encode(&mut self) -> &mut IcmpMessageBuffer
Encode the message per the spec for
V.Source§impl IcmpVersion for Icmpv4
impl IcmpVersion for Icmpv4
Source§const PROTOCOL: Protocol = socket2::Protocol::ICMPV4
const PROTOCOL: Protocol = socket2::Protocol::ICMPV4
The socket protocol to use when opening a socket
Source§const DEFAULT_BIND: Self::SocketAddr
const DEFAULT_BIND: Self::SocketAddr
The sockaddr to bind to if none is specified in
socket::SocketConfig. Read moreSource§type SocketAddr = SocketAddrV4
type SocketAddr = SocketAddrV4
The type of
sockaddr used with this versionSource§fn extract_icmp_from_recv_packet(packet: &[u8]) -> Result<(&[u8], Range<usize>)>
fn extract_icmp_from_recv_packet(packet: &[u8]) -> Result<(&[u8], Range<usize>)>
Extract the portion of the packet that comprises the ICMP message
Source§fn checksum_required() -> bool
fn checksum_required() -> bool
Whether the ICMP checksum should be calculated when sending a message.
Auto Trait Implementations§
impl Freeze for Icmpv4
impl RefUnwindSafe for Icmpv4
impl Send for Icmpv4
impl Sync for Icmpv4
impl Unpin for Icmpv4
impl UnsafeUnpin for Icmpv4
impl UnwindSafe for Icmpv4
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