Skip to main content

LinkTxPermit

Trait LinkTxPermit 

Source
pub trait LinkTxPermit {
    type Slot: WriteSlot;

    // Required method
    fn alloc(self, len: usize) -> Result<Self::Slot>;
}
Expand description

A permit for allocating exactly one outbound payload.

Returned by LinkTx::reserve. The permit represents message-level capacity (not bytes). Once you have a permit, turning it into a concrete buffer for a specific payload size is synchronous.

Required Associated Types§

Required Methods§

Source

fn alloc(self, len: usize) -> Result<Self::Slot>

Allocate a writable buffer of exactly len bytes.

This is synchronous once the permit has been acquired.

Implementors§