fuel_vm::pool

Trait VmMemoryPool

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

    // Required method
    fn get_new(&self) -> impl Future<Output = Self::Memory> + Send;
}
Expand description

Trait for a VM memory pool.

Required Associated Types§

source

type Memory: Memory + Send + Sync + 'static

The memory instance returned by this pool.

Required Methods§

source

fn get_new(&self) -> impl Future<Output = Self::Memory> + Send

Gets a new VM memory instance from the pool.

Object Safety§

This trait is not object safe.

Implementors§