Skip to main content

SnapshotProviderPort

Trait SnapshotProviderPort 

Source
pub trait SnapshotProviderPort:
    Send
    + Sync
    + Debug {
    // Required methods
    fn kind(&self) -> &str;
    fn capture_snapshot<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        source: &'life1 ProviderSnapshotSource,
        idempotency_key: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<ProviderResourceRef>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn delete_snapshot<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        snapshot_external_id: &'life1 str,
        idempotency_key: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn kind(&self) -> &str

Source

fn capture_snapshot<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, source: &'life1 ProviderSnapshotSource, idempotency_key: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<ProviderResourceRef>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn delete_snapshot<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, snapshot_external_id: &'life1 str, idempotency_key: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§