#[non_exhaustive]pub enum EventDomainError {
MissingDriver {
domain: EventDomainId,
},
RunDomainMismatch {
operation: EventDomainOperation,
node_index: Option<usize>,
expected: EventDomainId,
actual: EventDomainId,
},
DependencyDomainMismatch {
operation: EventDomainOperation,
node_index: Option<usize>,
expected: EventDomainId,
actual: EventDomainId,
},
CompletionTokenDomainMismatch {
operation: EventDomainOperation,
node_index: Option<usize>,
expected: EventDomainId,
actual: EventDomainId,
},
DrainPanicked {
operation: EventDomainOperation,
domain: EventDomainId,
message: String,
},
IncompatibleTokenType {
operation: EventDomainOperation,
node_index: Option<usize>,
expected: EventDomainId,
actual: EventDomainId,
token_type: &'static str,
},
DependencyWaitFailed {
operation: EventDomainOperation,
node_index: Option<usize>,
expected: EventDomainId,
actual: EventDomainId,
source: BoxError,
},
}Expand description
Structured event-domain admission and provenance failure.
Every provenance mismatch retains the expected and actual domains together with the operation and optional scheduled-node context; a missing-driver failure identifies the unavailable domain directly. Providers use the same vocabulary for direct admission failures.
§Examples
use tenferro_runtime::runtime::EventDomainError;
fn inspect(error: &EventDomainError) {
let _ = error;
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingDriver
The scheduler reached a domain for which no driver run was registered.
Fields
domain: EventDomainIdEvent domain whose driver run was unavailable.
RunDomainMismatch
A driver returned a run for a domain other than the requested domain.
Fields
operation: EventDomainOperationOperation validating the run.
expected: EventDomainIdDomain requested by the runtime.
actual: EventDomainIdDomain reported by the driver run.
DependencyDomainMismatch
A dependency token was not from the domain admitted at this boundary.
Fields
operation: EventDomainOperationOperation validating the dependency.
expected: EventDomainIdDomain that may admit the dependency.
actual: EventDomainIdOrigin reported by the dependency token.
CompletionTokenDomainMismatch
A driver returned a completion token with the wrong origin.
Fields
operation: EventDomainOperationOperation validating the completion.
expected: EventDomainIdCompletion domain assigned by the schedule.
actual: EventDomainIdOrigin reported by the returned token.
DrainPanicked
A public event-domain run panicked while being explicitly retired.
Fields
operation: EventDomainOperationOperation that contained the provider panic.
domain: EventDomainIdDomain whose run was being retired.
IncompatibleTokenType
A token has the right origin but cannot be admitted by this provider.
Fields
operation: EventDomainOperationOperation validating the token.
expected: EventDomainIdDomain the run admits.
actual: EventDomainIdOrigin reported by the token.
DependencyWaitFailed
The scheduler’s host bridge could not wait for a source completion.
Fields
operation: EventDomainOperationOperation validating the transfer bridge.
expected: EventDomainIdDestination domain that was not launched.
actual: EventDomainIdOrigin domain whose token failed to wait.
Trait Implementations§
Source§impl Debug for EventDomainError
impl Debug for EventDomainError
Source§impl Display for EventDomainError
impl Display for EventDomainError
Source§impl Error for EventDomainError
impl Error for EventDomainError
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()