Trait fuel_core_txpool::ports::MemoryPool

source ·
pub trait MemoryPool {
    type Memory: Memory + Send + Sync + 'static;

    // Required method
    fn get_memory<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Self::Memory> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for getting VM memory.

Required Associated Types§

source

type Memory: Memory + Send + Sync + 'static

Required Methods§

source

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

Get the memory instance.

Implementors§