pub enum DaemonError {
NotReady,
ShuttingDown,
FactoryAlreadyRegistered(String),
FactoryNotFound(String),
SnapshotIdentityMismatch {
snapshot: u64,
identity: u64,
},
Core(CoreDaemonError),
Migration(MigrationError),
MigrationFailed(MigrationFailureReason),
}Expand description
Errors from the SDK daemon runtime.
Variants§
NotReady
start() has not been called yet; the runtime is still in
Registering and will not accept spawns or migrations.
ShuttingDown
shutdown() has been called; the runtime is permanently
non-functional.
FactoryAlreadyRegistered(String)
Two register_factory calls used the same kind string.
FactoryNotFound(String)
spawn / spawn_from_snapshot referenced an unregistered kind.
SnapshotIdentityMismatch
The snapshot’s entity_id.origin_hash does not match the
identity handed to spawn_from_snapshot.
Core(CoreDaemonError)
Pass-through for errors surfaced by the core compute layer.
Migration(MigrationError)
Pass-through for migration-layer errors.
MigrationFailed(MigrationFailureReason)
Structured failure reason surfaced by the migration
dispatcher on the source side. Use
MigrationFailureReason::is_retriable to decide whether
the caller should back off and retry rather than propagating.
Trait Implementations§
Source§impl Debug for DaemonError
impl Debug for DaemonError
Source§impl Display for DaemonError
impl Display for DaemonError
Source§impl Error for DaemonError
impl Error for DaemonError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()