libpacket_core

Trait PacketSize

Source
pub trait PacketSize: Packet {
    // Required method
    fn packet_size(&self) -> usize;
}
Expand description

Used to find the calculated size of the packet. This is used for occasions where the underlying buffer is not the same length as the packet itself.

Required Methods§

Source

fn packet_size(&self) -> usize

Get the calculated size of the packet.

Implementors§