pub struct ModelTerminalCommitHandoff { /* private fields */ }Expand description
Retained terminal model evidence after a database commit failure.
Debug output excludes the response/error payload. Pass this value back to
DurableInvocationExecutor::commit_model_terminal without modification;
no provider request is performed by that method.
Implementations§
Source§impl ModelTerminalCommitHandoff
impl ModelTerminalCommitHandoff
Sourcepub const fn kind(&self) -> ModelAttemptTerminalKind
pub const fn kind(&self) -> ModelAttemptTerminalKind
Returns response/error classification without exposing payload content.
Sourcepub const fn fence(&self) -> &RunFence
pub const fn fence(&self) -> &RunFence
Returns the worker fence currently attached to terminal evidence.
Sourcepub fn rebind_fence(
self,
fence: RunFence,
) -> Result<Self, InvocationAttemptHandoffError>
pub fn rebind_fence( self, fence: RunFence, ) -> Result<Self, InvocationAttemptHandoffError>
Rebinds retained evidence to a newer live fence in the same run.
This is required when a provider call outlives its original lease. The store remains authoritative: it validates that the replacement fence is currently live before accepting the already-produced terminal evidence.
§Errors
Rejects a fence from another tenant or run.
Trait Implementations§
Source§impl Clone for ModelTerminalCommitHandoff
impl Clone for ModelTerminalCommitHandoff
Auto Trait Implementations§
impl !RefUnwindSafe for ModelTerminalCommitHandoff
impl !UnwindSafe for ModelTerminalCommitHandoff
impl Forget for ModelTerminalCommitHandoff
impl Freeze for ModelTerminalCommitHandoff
impl Move for ModelTerminalCommitHandoff
impl Send for ModelTerminalCommitHandoff
impl Sync for ModelTerminalCommitHandoff
impl Unpin for ModelTerminalCommitHandoff
impl UnsafeUnpin for ModelTerminalCommitHandoff
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