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.
ProcAllocationMode
Specifies how to interpret the extent dimensions for allocation.
ProcState
A proc’s status. A proc can only monotonically move from Created to Running to Stopped.
ProcStopReason
The reason a proc stopped.

Statics§

REMOTE_ALLOC_ALLOWED_PORT_RANGE
For Tcp channel types, if set, only uses ports in this range for the frontend ports. The input should be in the format “..”, where is exclusive. e.g.:
REMOTE_ALLOC_BIND_TO_INADDR_ANY
For Tcp channel types, if true, bind the IP address to INADDR_ANY (0.0.0.0 or [::]) for frontend ports.
REMOTE_ALLOC_BOOTSTRAP_ADDR
Specify the address alloc uses as its bootstrap address. e.g.:

Traits§

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