#[non_exhaustive]pub struct ClaimedExecution {
pub execution_id: ExecutionId,
pub lease_id: LeaseId,
pub lease_epoch: LeaseEpoch,
pub attempt_index: AttemptIndex,
pub attempt_id: AttemptId,
pub attempt_type: AttemptType,
pub lease_expires_at: TimestampMs,
pub handle: Handle,
}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§lease_id: LeaseId§lease_epoch: LeaseEpoch§attempt_index: AttemptIndex§attempt_id: AttemptId§attempt_type: AttemptType§lease_expires_at: TimestampMs§handle: HandleBackend-populated attempt handle for this claim (v0.12 PR-5.5).
Valkey fills in an encoded HandleKind::Fresh; PG/SQLite are
Unavailable on claim_execution at runtime per
project_claim_from_grant_pg_sqlite_gap.md, so the field stays
a stub on those paths.
Implementations§
Source§impl ClaimedExecution
impl ClaimedExecution
Sourcepub fn new(
execution_id: ExecutionId,
lease_id: LeaseId,
lease_epoch: LeaseEpoch,
attempt_index: AttemptIndex,
attempt_id: AttemptId,
attempt_type: AttemptType,
lease_expires_at: TimestampMs,
handle: Handle,
) -> Self
pub fn new( execution_id: ExecutionId, lease_id: LeaseId, lease_epoch: LeaseEpoch, attempt_index: AttemptIndex, attempt_id: AttemptId, attempt_type: AttemptType, lease_expires_at: TimestampMs, handle: Handle, ) -> Self
Construct a ClaimedExecution. Added alongside
#[non_exhaustive] per feedback_non_exhaustive_needs_constructor
so consumers (backend impls building a claim outcome) can still
build the struct after it was sealed for forward-compat.
Trait Implementations§
Source§impl Clone for ClaimedExecution
impl Clone for ClaimedExecution
Source§fn clone(&self) -> ClaimedExecution
fn clone(&self) -> ClaimedExecution
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 ClaimedExecution
impl Debug for ClaimedExecution
Source§impl<'de> Deserialize<'de> for ClaimedExecution
impl<'de> Deserialize<'de> for ClaimedExecution
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
Source§impl PartialEq for ClaimedExecution
impl PartialEq for ClaimedExecution
Source§impl Serialize for ClaimedExecution
impl Serialize for ClaimedExecution
impl Eq for ClaimedExecution
impl StructuralPartialEq for ClaimedExecution
Auto Trait Implementations§
impl Freeze for ClaimedExecution
impl RefUnwindSafe for ClaimedExecution
impl Send for ClaimedExecution
impl Sync for ClaimedExecution
impl Unpin for ClaimedExecution
impl UnsafeUnpin for ClaimedExecution
impl UnwindSafe for ClaimedExecution
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