Skip to main content

VmMemoryPool

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§