pub struct GraphNodeExecutionError { /* private fields */ }Expand description
Public-safe failure of one graph-node attempt before journal causation.
Node code cannot know the completion event ID chosen by the durable driver,
so it must return an uncaused failure. The driver attaches the exact event
immediately before the atomic completion append. ReconcileFirst is also
rejected because node side effects must live in the separate invocation
ledgers, whose reconciliation is not a node-attempt retry decision.
Implementations§
Source§impl GraphNodeExecutionError
impl GraphNodeExecutionError
Sourcepub fn new(
failure: Failure,
usage: BudgetUsage,
) -> Result<Self, GraphNodeExecutionErrorBuildError>
pub fn new( failure: Failure, usage: BudgetUsage, ) -> Result<Self, GraphNodeExecutionErrorBuildError>
Constructs a persistence-safe node failure.
§Errors
Returns GraphNodeExecutionErrorBuildError for pre-attached durable
causation or reconcile-first retry advice.
Sourcepub const fn usage(&self) -> &BudgetUsage
pub const fn usage(&self) -> &BudgetUsage
Returns normalized usage observed before failure.
Sourcepub fn into_parts(self) -> (Failure, BudgetUsage)
pub fn into_parts(self) -> (Failure, BudgetUsage)
Consumes the error into failure and usage components.
Trait Implementations§
Source§impl Clone for GraphNodeExecutionError
impl Clone for GraphNodeExecutionError
Auto Trait Implementations§
impl !RefUnwindSafe for GraphNodeExecutionError
impl !UnwindSafe for GraphNodeExecutionError
impl Forget for GraphNodeExecutionError
impl Freeze for GraphNodeExecutionError
impl Move for GraphNodeExecutionError
impl Send for GraphNodeExecutionError
impl Sync for GraphNodeExecutionError
impl Unpin for GraphNodeExecutionError
impl UnsafeUnpin for GraphNodeExecutionError
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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