[][src]Trait lucet_runtime::RegionCreate

pub trait RegionCreate: Region {
    const TYPE_NAME: &'static str;

    fn create(
        instance_capacity: usize,
        limits: &Limits
    ) -> Result<Arc<Self>, Error>; }

A trait for regions that are created with a fixed capacity and limits.

This is not part of Region so that Region types can be made into trait objects.

Associated Constants

const TYPE_NAME: &'static str

The type name of the region; useful for testing.

Loading content...

Required methods

fn create(instance_capacity: usize, limits: &Limits) -> Result<Arc<Self>, Error>

Create a new Region that can support a given number instances, each subject to the same runtime limits.

Loading content...

Implementors

impl RegionCreate for MmapRegion[src]

Loading content...