Trait atuin_daemon::history::history_server::History

source ·
pub trait History: Send + Sync + 'static {
    // Required methods
    fn start_history<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StartHistoryRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<StartHistoryReply>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn end_history<'life0, 'async_trait>(
        &'life0 self,
        request: Request<EndHistoryRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<EndHistoryReply>, 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 HistoryServer.

Required Methods§

source

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

source

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

Implementors§