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§

source

type Error

Error returned by this CallbackApi.

Required Methods§

source

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,

Fires when a certain callback Event happens on a media server.

Implementors§