ora_proto::snapshot::v1::snapshot_service_server

Trait SnapshotService

Source
pub trait SnapshotService:
    Send
    + Sync
    + 'static {
    // Provided methods
    fn export<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ExportRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<BoxStream<ExportResponse>>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn import<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<ImportRequest>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ImportResponse>, 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 SnapshotServiceServer.

Provided Methods§

Source

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

Export all the data of the system.

Source

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

Import the full snapshot of the system.

Note that this may overwrite the existing state of the system depending on the implementation.

Implementors§