Module alloc

Source
Expand description

This module defines a proc allocator interface as well as a multi-process (local) allocator, ProcessAllocator.

Re-exports§

pub use local::LocalAlloc;
pub use local::LocalAllocator;
pub use process::ProcessAlloc;
pub use process::ProcessAllocator;

Modules§

__mock_MockAlloc
__mock_MockAlloc_Alloc
__mock_MockAllocator
__mock_MockAllocator_Allocator
local
Support for allocating procs in the local process.
process
remoteprocess
sim
Support for allocating procs in the local process with simulated channels.
test_utils

Structs§

AllocConstraints
Constraints on the allocation.
AllocSpec
A specification (desired state) of an alloc.
MockAlloc
An alloc is a specific allocation, returned by an Allocator.
MockAllocator
The core allocator trait, implemented by all allocators.

Enums§

AllocatorError
Errors that occur during allocation operations.
ProcState
A proc’s status. A proc can only monotonically move from Created to Running to Stopped.
ProcStopReason
The reason a proc stopped.

Traits§

Alloc
An alloc is a specific allocation, returned by an Allocator.
Allocator
The core allocator trait, implemented by all allocators.