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§
Sourcefn packet_size(&self) -> usize
fn packet_size(&self) -> usize
Get the calculated size of the packet.