Trait ProviderCallContext

Source
pub trait ProviderCallContext: ModuleHost {
    // Required method
    fn init<'life0, 'async_trait>(
        &'life0 self,
        host_buffer_size: u32,
        guest_buffer_size: u32,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

The trait implemented by a context for a call or set of calls.

Required Methods§

Source

fn init<'life0, 'async_trait>( &'life0 self, host_buffer_size: u32, guest_buffer_size: u32, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Initialize the call context.

Implementors§