Trait medea_control_api_proto::CallbackApi
source · pub trait CallbackApi {
type Error;
// Required method
fn on_event<'life0, 'async_trait>(
&'life0 self,
req: Request
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
API for receiving callbacks from a media server.
Both API client and API server should implement this trait.
Required Associated Types§
sourcetype Error
type Error
Error returned by this CallbackApi
.