Skip to main content

L3Writer

Trait L3Writer 

Source
pub trait L3Writer {
    // Required method
    fn send_to(
        &self,
        packet: &[u8],
        dst: SocketAddrV4,
    ) -> Result<usize, IoError>;
}
Expand description

Sender for raw L3 IPv4 packets.

Required Methods§

Source

fn send_to(&self, packet: &[u8], dst: SocketAddrV4) -> Result<usize, IoError>

Send an IPv4 packet to the given destination.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§