trouble-host

Crates

git

Versions

default

Flavors

Type Alias DefaultPacketPool

Source
pub type DefaultPacketPool = StaticPacketPool<CriticalSectionRawMutex, { config::DEFAULT_PACKET_POOL_MTU }, { config::DEFAULT_PACKET_POOL_SIZE }>;
Expand description

Global default packet pool.

Aliased Type§

struct DefaultPacketPool { /* private fields */ }

Trait Implementations§

Source§

impl PacketPool for DefaultPacketPool

Source§

const MTU: usize = 251usize

The maximum size a packet can have.
Source§

type Packet = DefaultPacket

Packet type provided by this pool.
Source§

fn capacity() -> usize

Capacity of this pool in the number of packets.
Source§

fn allocate() -> Option<DefaultPacket>

Allocate a new buffer with space for MTU bytes. Return None when the allocation can’t be fulfilled. Read more