pub trait PacketPool {
    type Packet: Packet;
    fn acquire(&self) -> Self::Packet;
}
Expand description

Trait for packet allocation and pooling.

All packets that are allocated from turbulence are allocated through this interface.

Packets must implement the Packet trait and should all have the same capacity: the MTU for whatever the underlying transport is, up to MAX_PACKET_LEN in size.

Associated Types

Required methods

Implementors