Struct TerminalRequest
pub struct TerminalRequest {
pub token: TrialOwnerToken,
pub outcome: TerminalOutcome,
pub operation: OperationId,
}Expand description
Input to an atomic terminal transition.
Fields§
§token: TrialOwnerTokenThe owner/epoch fence.
outcome: TerminalOutcomeThe terminal result to commit.
operation: OperationIdThe lifecycle operation this call belongs to, for cross-process
correlation. OperationId::NONE when the caller has none — an honest
gap, never a fabricated correlation.
Implementations§
§impl TerminalRequest
impl TerminalRequest
pub const fn new(token: TrialOwnerToken, outcome: TerminalOutcome) -> Self
pub const fn new(token: TrialOwnerToken, outcome: TerminalOutcome) -> Self
Creates a terminal request.
pub const fn with_operation(self, operation: OperationId) -> Self
pub const fn with_operation(self, operation: OperationId) -> Self
Tags the request with the lifecycle operation it belongs to.
Defaulted rather than required: a backend must work for a caller with no correlation to offer, and a required id would only ever be satisfied with a fresh one that correlates nothing.
Trait Implementations§
§impl Clone for TerminalRequest
impl Clone for TerminalRequest
§fn clone(&self) -> TerminalRequest
fn clone(&self) -> TerminalRequest
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 more§impl Debug for TerminalRequest
impl Debug for TerminalRequest
§impl PartialEq for TerminalRequest
impl PartialEq for TerminalRequest
impl StructuralPartialEq for TerminalRequest
Auto Trait Implementations§
impl Freeze for TerminalRequest
impl RefUnwindSafe for TerminalRequest
impl Send for TerminalRequest
impl Sync for TerminalRequest
impl Unpin for TerminalRequest
impl UnsafeUnpin for TerminalRequest
impl UnwindSafe for TerminalRequest
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