pub struct MemoryManager { /* private fields */ }
Expand description

This struct implements a protection-swapping assembling buffer

Implementations

Create a new memory manager, with initial_mmap_size data allocated

Returns the amount of bytes already committed to the manager

Returns the current start address of the managed executable memory

Commits the data from new into the managed memory, calling f when the buffer is moved to fix anything that relies on the address of the buffer

Borrow the internal memory buffer mutably

finalizes the currently committed part of the buffer.

Create an atomically refcounted reference to the internal executable buffer

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.