Expand description
§Beetry Engine
This crate is an internal Beetry implementation crate and is not considered
part of the public API. For public APIs, use the beetry crate.
TreeEngine is the high-level entry point for loading a tree, preparing
the executor, and driving the tree until it reaches a terminal state.
It is the most idiomatic way to set up and execute trees.
§Engine states
TreeEngine uses the typestate pattern to make the initialization flow
explicit and keep required setup steps ordered by construction.
TreeEnginein theConfiguredstate: engine created, executor configuredTreeEnginein theTreeLoadedstate: tree attached by one of the supported methodsTreeEnginein theRunnablestate: tree ready to be ticked
Structs§
- Configured
- Marker state for an engine that is configured and ready to load a tree.
- Runnable
- Marker state for an engine whose tree is ready to be ticked.
- Tree
Engine - Engine for loading and ticking a tree.
- Tree
Engine Config - Configuration for constructing a
TreeEngine. - Tree
Loaded - Marker state for an engine with a loaded tree that has not started running yet.
Enums§
- Error
- Errors that can occur while ticking a tree with the engine.