Skip to main content

StateDatabase

Trait StateDatabase 

Source
pub trait StateDatabase: Send + Sync {
    // Required methods
    fn read_balancer_desired_state<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<BalancerDesiredState>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn store_balancer_desired_state<'life0, 'life1, 'async_trait>(
        &'life0 self,
        state: &'life1 BalancerDesiredState,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn read_balancer_desired_state<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<BalancerDesiredState>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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