pub trait Callback: Send + Sync + 'static {
    fn on_event<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Request>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Response>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Generated trait containing gRPC methods that should be implemented for use with CallbackServer.

Required methods

/ Fires when a certain callback event happens on Medea media server.

Implementors