pub trait RingKernelDyn: GpuKernel {
// Required method
fn handle_dyn<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 mut RingContext<'_>,
msg: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Type-erased ring kernel for registry storage.
Required Methods§
Sourcefn handle_dyn<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 mut RingContext<'_>,
msg: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn handle_dyn<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 mut RingContext<'_>,
msg: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Handle with type-erased messages.