Preview of the proposed up-rust native-frame-model branch (up-rust b6b99c6d, up-spec f0e9b17) — not released documentation. branch · write-up

Trait UZeroCopyListener

Source
pub trait UZeroCopyListener<Rx>: Send + Sync
where Rx: UZeroCopyRxLease + Send + 'static,
{ // Required method fn on_receive_zero_copy<'life0, 'async_trait>( &'life0 self, frame: Rx, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }
Expand description

Role: implemented by applications to receive zero-copy leases — see the trait map.

A handler for processing zero-copy receive leases.

Required Methods§

Source

fn on_receive_zero_copy<'life0, 'async_trait>( &'life0 self, frame: Rx, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handles one received zero-copy frame lease.

Implementors§