Trait Tauri

Source
pub trait Tauri:
    Send
    + Sync
    + 'static {
    // Required methods
    fn get_versions<'life0, 'async_trait>(
        &'life0 self,
        request: Request<VersionsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Versions>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_config<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ConfigRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Config>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_metrics<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MetricsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Metrics>, 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 TauriServer.

Required Methods§

Source

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

Source

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

Source

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

Implementors§