#[non_exhaustive]pub struct IssueGrantAndClaimArgs {
pub execution_id: ExecutionId,
pub lane_id: LaneId,
pub lease_duration_ms: u64,
}Expand description
Args for crate::engine_backend::EngineBackend::issue_grant_and_claim.
Composes issue_claim_grant + claim_execution into a single
backend-atomic op per cairn #454 Q4. The composition must be
backend-atomic (not caller-chained) to prevent leaking grants when
claim_execution fails after issue_claim_grant succeeded.
Valkey: one ff_issue_grant_and_claim FCALL composing the two
primitives in Lua.
Postgres/SQLite: both primitives inside one tx.
Flattened shape (not IssueClaimGrantArgs + ClaimExecutionArgs
composition) — the two arg types overlap on execution_id +
lane_id; flattening drops the dup.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.execution_id: ExecutionId§lane_id: LaneId§lease_duration_ms: u64Lease TTL in milliseconds. Threaded into both the grant TTL and
the claimed attempt’s lease_expires_at_ms.
Implementations§
Source§impl IssueGrantAndClaimArgs
impl IssueGrantAndClaimArgs
pub fn new( execution_id: ExecutionId, lane_id: LaneId, lease_duration_ms: u64, ) -> Self
Trait Implementations§
Source§impl Clone for IssueGrantAndClaimArgs
impl Clone for IssueGrantAndClaimArgs
Source§fn clone(&self) -> IssueGrantAndClaimArgs
fn clone(&self) -> IssueGrantAndClaimArgs
Returns a duplicate of the value. Read more
1.0.0 · 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 IssueGrantAndClaimArgs
impl Debug for IssueGrantAndClaimArgs
Source§impl<'de> Deserialize<'de> for IssueGrantAndClaimArgs
impl<'de> Deserialize<'de> for IssueGrantAndClaimArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IssueGrantAndClaimArgs
impl RefUnwindSafe for IssueGrantAndClaimArgs
impl Send for IssueGrantAndClaimArgs
impl Sync for IssueGrantAndClaimArgs
impl Unpin for IssueGrantAndClaimArgs
impl UnsafeUnpin for IssueGrantAndClaimArgs
impl UnwindSafe for IssueGrantAndClaimArgs
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