Skip to main content

WorkspaceSessionResolver

Trait WorkspaceSessionResolver 

Source
pub trait WorkspaceSessionResolver:
    Send
    + Sync
    + Debug {
    // Required methods
    fn resolve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        workspace: &'life1 WorkspaceRecord,
    ) -> Pin<Box<dyn Future<Output = Result<WorkspaceSession>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn resolve_snapshot_destination<'life0, 'life1, 'async_trait>(
        &'life0 self,
        backend: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn SnapshotProvider>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided method
    fn check_readiness<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn resolve<'life0, 'life1, 'async_trait>( &'life0 self, workspace: &'life1 WorkspaceRecord, ) -> Pin<Box<dyn Future<Output = Result<WorkspaceSession>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn resolve_snapshot_destination<'life0, 'life1, 'async_trait>( &'life0 self, backend: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn SnapshotProvider>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Resolve the importer owned by the requested destination backend. A migration must never reuse the source session’s importer implicitly.

Provided Methods§

Source

fn check_readiness<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + 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§