Trait discortp::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§