Module krator::state[][src]

Used to define a state machine.

Structs

StateHolder

Guard for preventing manual construction on Transition::Next.

Enums

Transition

Represents result of state execution and which state to transition to next.

Traits

ResourceState

Interface for types which capture data related to a specific object that is passed between the object's state handlers.

State

A trait representing a node in the state graph.

TransitionTo

Mark an edge exists between two states.

Functions

patch_status

Patch object status with Kubernetes API.

run_to_completion

Iteratively evaluate state machine until it returns Complete.

Type Definitions

SharedState

Convenience redefinition of Arc<RwLock>