Skip to main content

Module machine

Module machine 

Source
Expand description

Basic machine that can process recipes. Mods are encouraged to not export this, and instead define their own wrappers like

use rustorio_engine::{machine::Machine, recipe::Recipe, Sealed};
trait AssemblerRecipe: Recipe + Sealed {}
pub struct Assembler<R: AssemblerRecipe>(Machine<R>);

Structs§

Machine
Basic machine that can process recipes.
MachineNotEmptyError
Error returned when trying to change a machine’s recipe while it has non-empty input or output buffers.

Enums§

BufferLocation
Location of a resource buffer in a machine.