Crate steady_state

Source
Expand description

§Steady State Core - Easy Performant Async

Steady State is a high performance, easy to use, actor based framework for building concurrent applications in Rust. Guarantee your SLA with telemetry, alerts and Prometheus. Build low latency high volume solutions.

Re-exports§

Modules§

  • module for all actor features The actor_builder module provides structures and functions to create, configure, and manage actors within a system. This module includes the ActorBuilder for building actors, ActorTeam for managing groups of actors, and various utility functions and types to support actor creation and telemetry monitoring.
  • module for all channel features
  • module for all commands for channels used by actors
  • module for testing full graphs of actors This module provides utilities for testing graphs in the SteadyState project.
  • Installation modules for setting up various deployment methods.
  • module for all monitor features
  • module for all rx channel features
  • module for all tx channel features
  • util module for various utility functions.
  • module to yield in our actor This module provides a simple future that yields once before completing.

Macros§

  • This macro waits for all the provided futures to complete. It returns a boolean indicating if all futures returned true.
  • This macro waits for either the first future to complete, or all of the rest to complete. It returns a boolean indicating if all futures (or the rest of the futures if the first completes) returned true.
  • This macro waits for any of the provided futures to complete. It returns a boolean indicating if any one of the futures returned true.
  • Macro takes a SteadyContext and a list of Rx and Tx channels and returns a LocalMonitor. The Monitor is the only way to produce metrics for telemetry and prometheus. The macro is used to ensure specifically which channels are monitored.

Structs§

  • Represents the identity of an actor.
  • Represents the name of an actor with its unique and optional usize suffix
  • Manages the execution of actors in the graph.
  • all the preliminary setup for the graph
  • Manages the liveliness state of the graph and handles the shutdown voting process.
  • Represents a vote for shutdown by an actor.
  • Represents a standard deviation value.
  • Context for managing actor state and interactions within the Steady framework.

Enums§

  • Represents the color of an alert in the Steady State framework.
  • Represents the state of graph liveliness in the Steady State framework.
  • Configuration options for the proactor.
  • Represents the behavior of the system when the channel is saturated (i.e., full).
  • Represents a trigger condition for a metric in the Steady State framework.

Traits§

  • Represents a Metric suitable for actors which perform computations.
  • Represents a Metric suitable for channels which transfer data.
  • Type alias for an array of thread-safe receivers (Rx) with a fixed size (GIRTH), wrapped in an Arc.
  • Type alias for an array of thread-safe receivers (Rx) with a fixed size (GIRTH), wrapped in an Arc. This one is special because its clone will lazy create teh channels.
  • Base Trait for all metrics for use on Telemetry and Prometheus.

Functions§

  • Creates a bundle of thread-safe receivers (Rx) with a fixed size (GIRTH), wrapped in an Arc.
  • Create new SteadyState struct for holding state of actors across panics restarts. Should only be called in main when creating the actors
  • Runs blocking code on a thread pool.
  • Spawns a task onto the local executor.
  • Creates a bundle of thread-safe transmitters (Tx) with a fixed size (GIRTH), wrapped in an Arc.
  • Lock for use the SteadyState struct which holds state of an actor across panics restarts.
  • Creates a bundle of thread-safe transmitters (Tx) with a fixed size (GIRTH), wrapped in an Arc.

Type Aliases§

  • Type alias for an array of thread-safe receivers (Rx) with a fixed size (GIRTH), wrapped in an Arc.
  • Type alias for an array of thread-safe transmitters (Tx) with a fixed size (GIRTH), wrapped in an Arc.
  • Type alias for a vector of MutexGuard references to receivers (Rx).
  • Type alias for a thread-safe receiver (Rx) wrapped in an Arc and Mutex.
  • Type alias for an array of thread-safe receivers (Rx) with a fixed size (GIRTH), wrapped in an Arc.
  • Type alias for a thread-safe steady state (S) wrapped in an Arc and Mutex.
  • Type alias for a thread-safe transmitter (Tx) wrapped in an Arc and Mutex.
  • Type alias for an array of thread-safe transmitters (Tx) with a fixed size (GIRTH), wrapped in an Arc.
  • Type alias for a vector of MutexGuard references to transmitters (Tx).