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§
Sourcefn 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_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
Sourcefn 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<'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
Sourcefn 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 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