#[non_exhaustive]pub enum RuntimeDriverError {
NotReady {
state: RuntimeState,
},
NotFound {
runtime_id: LogicalRuntimeId,
},
ValidationFailed {
reason: String,
},
Destroyed,
RecoveryCorruption {
reason: String,
},
UnregisterFinalizationOutcomeUnknown {
reason: String,
},
UnregisterInProgress {
runtime_id: LogicalRuntimeId,
},
RuntimeStopInProgress {
runtime_id: LogicalRuntimeId,
},
Internal(String),
}Expand description
Errors from RuntimeDriver operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotReady
The runtime is not in a state that can accept this operation.
Fields
state: RuntimeStateNotFound
The runtime was never registered / does not exist.
Distinct from RuntimeDriverError::Destroyed and
RuntimeDriverError::NotReady with a Destroyed state: absence means
the runtime id was never admitted, not that it once existed and was torn
down.
Fields
runtime_id: LogicalRuntimeIdValidationFailed
Input validation failed.
Destroyed
The runtime has been destroyed.
RecoveryCorruption
Durable recovery state could not be replayed through canonical runtime authority.
UnregisterFinalizationOutcomeUnknown
Atomic unregister persistence may already be durable. The live retry anchor is retained, but no compensating durable rollback may run.
UnregisterInProgress
The machine-owned unregister saga still owns this runtime epoch and is continuing asynchronously. The caller may retry to join the same saga; this is not permission to replace or abandon the owned executor.
Fields
runtime_id: LogicalRuntimeIdRuntimeStopInProgress
The machine-owned ordinary-stop cleanup coordinator still owns this runtime epoch. The caller may retry to join the same coordinator; this is not permission to unregister, replace, or abandon the exact executor.
Fields
runtime_id: LogicalRuntimeIdInternal(String)
Internal error.
Trait Implementations§
Source§impl Clone for RuntimeDriverError
impl Clone for RuntimeDriverError
Source§fn clone(&self) -> RuntimeDriverError
fn clone(&self) -> RuntimeDriverError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeDriverError
impl Debug for RuntimeDriverError
Source§impl Display for RuntimeDriverError
impl Display for RuntimeDriverError
Source§impl Error for RuntimeDriverError
impl Error for RuntimeDriverError
1.30.0 · 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()