#[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()
Source§impl From<EventDomainError> for Error
impl From<EventDomainError> for Error
Source§fn from(source: EventDomainError) -> Self
fn from(source: EventDomainError) -> Self
Auto Trait Implementations§
impl Freeze for EventDomainError
impl !RefUnwindSafe for EventDomainError
impl Send for EventDomainError
impl Sync for EventDomainError
impl Unpin for EventDomainError
impl UnsafeUnpin for EventDomainError
impl !UnwindSafe for EventDomainError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more