Skip to main content

ObjectPlacementStore

Trait ObjectPlacementStore 

Source
pub trait ObjectPlacementStore: Send + Sync {
    // Required methods
    fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        object: &'life1 ActorStorageKey,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ObjectPlacement>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn claim<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        object: &'life1 ActorStorageKey,
        expected: Option<&'life2 ObjectPlacement>,
        owner: &'life3 HostId,
        home_region: &'life4 str,
    ) -> Pin<Box<dyn Future<Output = Result<PlacementClaim>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn commit_state<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 StateCommitRequest,
    ) -> Pin<Box<dyn Future<Output = Result<StateCommit>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn get<'life0, 'life1, 'async_trait>( &'life0 self, object: &'life1 ActorStorageKey, ) -> Pin<Box<dyn Future<Output = Result<Option<ObjectPlacement>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn claim<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, object: &'life1 ActorStorageKey, expected: Option<&'life2 ObjectPlacement>, owner: &'life3 HostId, home_region: &'life4 str, ) -> Pin<Box<dyn Future<Output = Result<PlacementClaim>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

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