Crate rink_sandbox

Source
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§

  • Wraps an allocator, adding memory use limits and tracking for peak memory usage.
  • Contains response data, as well as statistics like memory usage.
  • A handle to the child process.

Enums§

  • All of the errors that can result while managing the child process.

Traits§

  • In order to sandbox some logic, there needs to be an implementation of this trait for it.

Functions§

  • When your app is passed the arguments returned by Service::args, it should call this function to begin servicing requests.