pub unsafe trait RuntimeFiberStackCreator: Send + Sync {
// Required method
fn new_stack(
&self,
size: usize,
) -> Result<Box<dyn RuntimeFiberStack>, Error>;
}
Expand description
A creator of RuntimeFiberStacks.
Required Methods§
Sourcefn new_stack(&self, size: usize) -> Result<Box<dyn RuntimeFiberStack>, Error>
fn new_stack(&self, size: usize) -> Result<Box<dyn RuntimeFiberStack>, Error>
Creates a new RuntimeFiberStack with the specified size, guard pages should be included, memory should be zeroed.
This is useful to plugin previously allocated memory instead of mmap’ing a new stack for every instance.