atuin_daemon::history::history_server

Trait 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§