Trait RecordCallback
Source pub trait RecordCallback<T>: Send + Sync {
// Required methods
fn request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
res: &'life1 Packet<'life2>,
) -> Pin<Box<dyn Future<Output = (bool, Option<T>)> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn response<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: Option<&'life1 Packet<'life2>>,
context: Option<T>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}