Skip to main content

EnvironmentBindingStore

Trait EnvironmentBindingStore 

Source
pub trait EnvironmentBindingStore: Send + Sync {
    // Required methods
    fn load<'life0, 'async_trait>(
        &'life0 self,
        session_id: SessionId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<WorkspaceBinding>, EnvironmentBindingError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn bind<'life0, 'life1, 'async_trait>(
        &'life0 self,
        session_id: SessionId,
        binding: &'life1 WorkspaceBinding,
    ) -> Pin<Box<dyn Future<Output = Result<(), EnvironmentBindingError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Durable compare-and-set store for a session’s opaque environment binding.

Required Methods§

Source

fn load<'life0, 'async_trait>( &'life0 self, session_id: SessionId, ) -> Pin<Box<dyn Future<Output = Result<Option<WorkspaceBinding>, EnvironmentBindingError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn bind<'life0, 'life1, 'async_trait>( &'life0 self, session_id: SessionId, binding: &'life1 WorkspaceBinding, ) -> Pin<Box<dyn Future<Output = Result<(), EnvironmentBindingError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§