Expand description
§🦊 Foxtive Supervisor
A Rust supervision library that keeps your async tasks running, even when things go wrong. It provides automatic restarts, dependency management, dynamic task management, and deep observability.
§Core Components
Supervisor: The primary entry point for configuring and starting supervised tasks.TaskRuntime: The underlying runtime handle for managing tasks after they’ve started.SupervisedTask: The trait your tasks must implement to be supervised.persistence::TaskStateStore: Interface for persisting task state across restarts.SupervisorEventListener: Interface for listening to supervisor-wide events.
Re-exports§
pub use crate::contracts::SupervisedTask;pub use crate::contracts::SupervisorEventListener;pub use crate::enums::TaskConfig;pub use crate::error::SupervisorError;pub use crate::error::SupervisorResult;pub use crate::error::ValidationError;pub use crate::persistence::TaskStateStore;pub use crate::runtime::SupervisionResult;pub use crate::runtime::TaskRuntime;pub use crate::runtime::spawn_supervised;pub use crate::runtime::spawn_supervised_many;
Modules§
- contracts
- enums
- error
- Error types for the supervisor system
- hierarchy
- Supervisor hierarchy and nesting support
- persistence
- runtime
- Task runtime module for the Foxtive supervisor
- task_
pool - Task pool and load balancing support
Structs§
- Supervisor
- Builder for constructing and starting a supervisor.