Skip to main content

Crate os_service_fabric

Crate os_service_fabric 

Source
Expand description

os_service_fabric is a dependency-free, no_std-first framework for modeling and orchestrating operating system services.

It defines:

  • explicit service lifecycles (state module)
  • static, allocation-free dependency graphs (graph module)
  • health reporting (health module)
  • recovery policies (policy module)
  • a deterministic runtime that drives services (runtime module)

The crate does not perform I/O, allocation, or logging on its own. It is intended to be integrated into kernels or bare-metal frameworks that provide these capabilities externally.

Re-exports§

pub use crate::error::ServiceError;
pub use crate::graph::GraphError;
pub use crate::graph::ServiceGraph;
pub use crate::graph::ServiceNode;
pub use crate::health::HealthLevel;
pub use crate::health::ServiceHealth;
pub use crate::id::ServiceId;
pub use crate::policy::RecoveryAction;
pub use crate::policy::RecoveryPolicy;
pub use crate::runtime::FabricRuntime;
pub use crate::runtime::FabricStepOutcome;
pub use crate::service::Service;
pub use crate::state::ServiceState;

Modules§

error
Error types used by the fabric and services.
graph
Static, allocation-free service dependency graphs.
health
Health reporting primitives for services.
id
Service identifiers used by the fabric.
policy
Recovery policies for services.
runtime
Deterministic runtime driving a crate::graph::ServiceGraph with recovery policies.
service
Definition of the Service trait implemented by subsystems.
state
Service lifecycle states and related helpers.