pub trait EncodeIcmpMessage<V: IcmpVersion> {
// Required method
fn encode(&mut self) -> &mut IcmpMessageBuffer;
}Expand description
Encode an ICMP message to be sent via an crate::socket::IcmpSocket.
Required Methods§
Sourcefn encode(&mut self) -> &mut IcmpMessageBuffer
fn encode(&mut self) -> &mut IcmpMessageBuffer
Encode the message per the spec for V.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".