Trait shadow_rs::network::PacketDevice

source ·
pub trait PacketDevice {
    // Required methods
    fn get_address(&self) -> Ipv4Addr;
    fn pop(&self) -> Option<PacketRc>;
    fn push(&self, packet: PacketRc);
}

Required Methods§

source

fn get_address(&self) -> Ipv4Addr

source

fn pop(&self) -> Option<PacketRc>

source

fn push(&self, packet: PacketRc)

Implementors§