pub trait Snapshots:
Send
+ Sync
+ 'static {
// Required methods
fn create<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateSnapshotResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list<'life0, 'async_trait>(
&'life0 self,
request: Request<ListSnapshotsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListSnapshotsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteSnapshotResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_full<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateFullSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateSnapshotResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_full<'life0, 'async_trait>(
&'life0 self,
request: Request<ListFullSnapshotsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListSnapshotsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_full<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteFullSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteSnapshotResponse>, 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 SnapshotsServer.
Required Methods§
sourcefn create<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateSnapshotResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateSnapshotResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create collection snapshot
sourcefn list<'life0, 'async_trait>(
&'life0 self,
request: Request<ListSnapshotsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListSnapshotsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
request: Request<ListSnapshotsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListSnapshotsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List collection snapshots
sourcefn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteSnapshotResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteSnapshotResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete collection snapshot
sourcefn create_full<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateFullSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateSnapshotResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_full<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateFullSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateSnapshotResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create full storage snapshot
sourcefn list_full<'life0, 'async_trait>(
&'life0 self,
request: Request<ListFullSnapshotsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListSnapshotsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_full<'life0, 'async_trait>(
&'life0 self,
request: Request<ListFullSnapshotsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListSnapshotsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List full storage snapshots
sourcefn delete_full<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteFullSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteSnapshotResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_full<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteFullSnapshotRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteSnapshotResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete full storage snapshot