Trait fuel_vm::pool::VmMemoryPool

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

    // Required method
    fn get_new(&self) -> Self::Memory;
}
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) -> Self::Memory

Gets a new VM memory instance from the pool.

Implementors§