Crate peace_rt_model

Source
Expand description

Runtime data types for the peace automation framework.

This crate re-exports types from peace_rt_model_native or peace_rt_model_web depending on the compilation target architecture.

Re-exports§

pub use peace_data::fn_graph;

Modules§

indicatif
indicatif is a library for Rust that helps you build command line interfaces that report progress to users. It comes with various tools and utilities for formatting anything that indicates progress.
outcomes
Type that represent outcomes of execution.
output
params
Serializable data to initialize resources in a CmdContext.
workspace
Types that store information about the directories that a command runs in.

Structs§

FnRef
A reference to the function, which also signals when the reference is dropped.
InMemoryTextOutput
An OutputWrite implementation that writes to the command line.
IndexMap
A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
ItemBoxed
Holds a type-erased ItemWrapper in a Box.
ItemWrapper
Wraps a type implementing Item.
ItemsStateStoredStale
Items whose stored and discovered state are not equal.
ParamsSpecsDeserializeError
ParamsSpecsSerializer
Reads and writes ParamsSpecs to and from storage.
ParamsSpecsTypeReg
Type registry for each item’s Params’s Spec.
StatesDeserializeError
StatesTypeReg
Type registry for each item’s State.
Storage
Wrapper around file system operations.
SyncIoBridge
Use a tokio::io::AsyncRead synchronously as a std::io::Read or a tokio::io::AsyncWrite synchronously as a std::io::Write.
Workspace
Workspace that the peace tool runs in.
WorkspaceDirsBuilder
Computes paths of well-known directories for a workspace.
WorkspaceInitializer
Logic to create peace directories and reads/writes initialization params.

Enums§

ApplyCmdError
Error applying changes to items.
Error
Peace runtime errors.
NativeError
Peace runtime errors.
StateDowncastError
Error downcasting a BoxDtDisplay into an item’s concrete state type.
StateStoredAndDiscovered
Stored and/or discovered state for an item.
WorkspaceSpec
Describes how to discover the workspace directory.

Traits§

ItemRt
Internal trait that erases the types from Item

Attribute Macros§

async_trait