Skip to main content

TurnService

Trait TurnService 

Source
pub trait TurnService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn get_info<'life0, 'async_trait>(
        &'life0 self,
        request: Request<()>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TurnServerInfo>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_session<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SessionQueryParams>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TurnSession>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_session_statistics<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SessionQueryParams>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<TurnSessionStatistics>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn destroy_session<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SessionQueryParams>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

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

Required Methods§

Source

fn get_info<'life0, 'async_trait>( &'life0 self, request: Request<()>, ) -> Pin<Box<dyn Future<Output = Result<Response<TurnServerInfo>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

get server info

Source

fn get_session<'life0, 'async_trait>( &'life0 self, request: Request<SessionQueryParams>, ) -> Pin<Box<dyn Future<Output = Result<Response<TurnSession>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

get session

Source

fn get_session_statistics<'life0, 'async_trait>( &'life0 self, request: Request<SessionQueryParams>, ) -> Pin<Box<dyn Future<Output = Result<Response<TurnSessionStatistics>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

get session statistics

Source

fn destroy_session<'life0, 'async_trait>( &'life0 self, request: Request<SessionQueryParams>, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

destroy session

Implementors§