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 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.
- Type that represent outcomes of execution.
- Serializable data to initialize resources in a
CmdContext
. - Types that store information about the directories that a command runs in.
Structs§
- A flow to manage items.
- A reference to the function, which also signals when the reference is dropped.
- An
OutputWrite
implementation that writes to the command line. - A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
- Holds a type-erased
ItemWrapper
in aBox
. - Graph of all
Item
s,FnGraph<ItemBoxed<E>>
newtype. - Builder for an
ItemGraph
,FnGraphBuilder<ItemBoxed<E>>
newtype. - Wraps a type implementing
Item
. - Items whose stored and discovered state are not equal.
- Reads and writes
ParamsSpecs
to and from storage. - Type registry for each item’s
Params
’s Spec. - Reads and writes
StatesCurrentStored
andStatesGoalStored
to and from storage. - Type registry for each item’s
State
. - Wrapper around file system operations.
- Use a [
tokio::io::AsyncRead
] synchronously as astd::io::Read
or a [tokio::io::AsyncWrite
] as astd::io::Write
. - Workspace that the
peace
tool runs in. - Computes paths of well-known directories for a workspace.
- Logic to create peace directories and reads/writes initialization params.
Enums§
- Error applying changes to items.
- Peace runtime errors.
- Peace runtime errors.
- Error downcasting a
BoxDtDisplay
into an item’s concrete state type. - Stored and/or discovered state for an item.
- Describes how to discover the workspace directory.
Traits§
- Internal trait that erases the types from
Item