Skip to main content

SnapshotsService

Trait SnapshotsService 

Source
pub trait SnapshotsService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn create_snapshot<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreateSnapshotRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Snapshot>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn destroy_snapshot<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DestroySnapshotRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DestroySnapshotResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fork_snapshot<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ForkSnapshotRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Bucket>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fork_bucket<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ForkBucketRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Bucket>, 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 SnapshotsServiceServer.

Required Methods§

Source

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

Source

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

Source

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

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§