Skip to main content

ForkStore

Trait ForkStore 

Source
pub trait ForkStore: Send + Sync {
    // Required methods
    fn save_fork<'life0, 'async_trait>(
        &'life0 self,
        fork: ForkSnapshot,
    ) -> Pin<Box<dyn Future<Output = Result<(), StateError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn load_fork<'life0, 'async_trait>(
        &'life0 self,
        fork_id: ForkId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ForkSnapshot>, StateError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

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

Source

fn load_fork<'life0, 'async_trait>( &'life0 self, fork_id: ForkId, ) -> Pin<Box<dyn Future<Output = Result<Option<ForkSnapshot>, StateError>> + 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§