pub struct DecisionExecutorError { /* private fields */ }Expand description
Failure reported by an isolated action executor.
Implementations§
Source§impl DecisionExecutorError
impl DecisionExecutorError
Sourcepub fn new(message: impl Into<String>) -> Self
pub fn new(message: impl Into<String>) -> Self
Creates a generic executor failure with a stable diagnostic.
This compatibility constructor classifies the failure as
DecisionExecutionFailureKind::ExecutorFailure. Executors with
structured failure provenance should use Self::with_kind.
Sourcepub fn with_kind(
kind: DecisionExecutionFailureKind,
message: impl Into<String>,
) -> Self
pub fn with_kind( kind: DecisionExecutionFailureKind, message: impl Into<String>, ) -> Self
Creates an executor failure with an explicit, transport-neutral kind.
Sourcepub fn kind(&self) -> DecisionExecutionFailureKind
pub fn kind(&self) -> DecisionExecutionFailureKind
Returns the structured failure classification supplied by the executor.
Sourcepub fn execution_failure(&self) -> Option<&DecisionExecutionFailureReceipt>
pub fn execution_failure(&self) -> Option<&DecisionExecutionFailureReceipt>
Returns runner-owned execution context when this error crossed the
super::DecisionRunnerAdapter boundary.
Sourcepub fn runtime_limit(&self) -> Option<&RuntimeLimitExceeded>
pub fn runtime_limit(&self) -> Option<&RuntimeLimitExceeded>
Returns the host resource limit that refused a transport dispatch.
Trait Implementations§
Source§impl Clone for DecisionExecutorError
impl Clone for DecisionExecutorError
Source§fn clone(&self) -> DecisionExecutorError
fn clone(&self) -> DecisionExecutorError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecisionExecutorError
impl Debug for DecisionExecutorError
Source§impl Display for DecisionExecutorError
impl Display for DecisionExecutorError
impl Eq for DecisionExecutorError
Source§impl Error for DecisionExecutorError
impl Error for DecisionExecutorError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for DecisionExecutorError
impl PartialEq for DecisionExecutorError
impl StructuralPartialEq for DecisionExecutorError
Auto Trait Implementations§
impl Freeze for DecisionExecutorError
impl RefUnwindSafe for DecisionExecutorError
impl Send for DecisionExecutorError
impl Sync for DecisionExecutorError
impl Unpin for DecisionExecutorError
impl UnsafeUnpin for DecisionExecutorError
impl UnwindSafe for DecisionExecutorError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more