Skip to main content

Crate appcore_supervisor

Crate appcore_supervisor 

Source
Expand description

Dependency-aware supervision for in-process managed services.

This crate supervises managed services, workers, queues, and threads. It deliberately does not supervise the operating-system process that hosts the Runtime.

Structs§

CallbackManagedService
Managed adapter for an embedded resource controlled by callbacks. A stop error or panic permanently marks the instance orphaned; future starts are rejected because resource teardown was not proven complete. Concurrent or reentrant lifecycle calls fail immediately without invoking another callback; health probes remain independent of this admission gate.
ManagedThreadService
Managed adapter for one cooperatively cancellable thread.
PassiveManagedService
Managed adapter for a passive Runtime resource with no owned worker.
RestartExecutorSnapshot
Immutable bounded restart-executor diagnostics.
RestartPolicy
Bounded restart and shutdown behavior for one service.
ServiceDependency
One dependency and the minimum health required from it.
ServiceDescriptor
Immutable definition of one managed service.
ServiceSnapshot
Immutable diagnostic snapshot for one managed service.
Supervisor
Process-local orchestrator for Runtime-owned managed services.
SupervisorDiagnosis
Complete result consumed by appcore doctor and diagnostics.
SupervisorEvent
One bounded, non-sensitive supervisor event.
SupervisorWatchdog
Atomic watchdog state shared by reconcile, health, and watchdog threads.
WatchdogConfig
Watchdog policy supplied by the installation.
WatchdogSnapshot
Immutable watchdog progress exposed to health consumers.

Enums§

DependencyRequirement
Minimum health accepted from a declared dependency.
ManagedResource
Runtime resource controlled by a managed service.
RestartMode
Conditions under which a managed service may restart.
RestartState
Lifecycle state of one scheduled restart.
ServiceActivationState
Installation-level activation of one managed service.
ServiceHealth
Observable health of one managed service.
ServiceRuntimeState
Concrete execution state of one managed service.
SupervisorError
Controlled failure produced by service supervision.
SupervisorEventKind
Stable kind emitted for supervisor and watchdog state changes.
WatchdogState
Observable watchdog lifecycle state.

Constants§

DEFAULT_EVENT_CAPACITY
Default number of lifecycle events retained in memory.
DEFAULT_WATCHDOG_CHECK_INTERVAL_MS
Default watchdog check interval.
DEFAULT_WATCHDOG_STALL_TIMEOUT_MS
Default maximum interval without completed reconciliation.

Traits§

ManagedService
Lifecycle boundary implemented by every supervised Runtime service.

Type Aliases§

SupervisorResult
Result returned by supervisor operations.