Expand description
This crate provides a way to run code in a context with limited memory, execution time, and the ability to be interrupted.
For an example, see examples/add_two.rs.
Structs§
- Alloc
- Wraps an allocator, adding memory use limits and tracking for peak memory usage.
- Response
- Contains response data, as well as statistics like memory usage.
- Sandbox
- A handle to the child process.
Enums§
- Error
- All of the errors that can result while managing the child process.
Traits§
- Service
- In order to sandbox some logic, there needs to be an implementation of this trait for it.
Functions§
- become_
child - When your app is passed the arguments returned by
Service::args, it should call this function to begin servicing requests.