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

Trait UOwnedListener

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

Role: implemented by applications to receive owned frames — see the trait map.

Listener for experimental owned native-frame transports.

Required Methods§

Source

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

Performs some action on receipt of an owned native frame.

Implementors§