#[non_exhaustive]pub struct ClaimedResumedExecution {
pub execution_id: ExecutionId,
pub lease_id: LeaseId,
pub lease_epoch: LeaseEpoch,
pub attempt_index: AttemptIndex,
pub attempt_id: AttemptId,
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§lease_expires_at: TimestampMs§handle: HandleBackend-populated attempt handle for this resumed claim
(v0.12 PR-5.5). Valkey fills in HandleKind::Resumed; PG/SQLite
populate a backend-tagged real handle via
ff_core::handle_codec::encode.
Implementations§
Source§impl ClaimedResumedExecution
impl ClaimedResumedExecution
Sourcepub fn new(
execution_id: ExecutionId,
lease_id: LeaseId,
lease_epoch: LeaseEpoch,
attempt_index: AttemptIndex,
attempt_id: AttemptId,
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, lease_expires_at: TimestampMs, handle: Handle, ) -> Self
Construct a ClaimedResumedExecution. Added alongside
#[non_exhaustive] per feedback_non_exhaustive_needs_constructor
so consumers (backend impls building a resumed-claim outcome)
can still build the struct after it was sealed for forward-compat.
Trait Implementations§
Source§impl Clone for ClaimedResumedExecution
impl Clone for ClaimedResumedExecution
Source§fn clone(&self) -> ClaimedResumedExecution
fn clone(&self) -> ClaimedResumedExecution
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 ClaimedResumedExecution
impl Debug for ClaimedResumedExecution
Source§impl<'de> Deserialize<'de> for ClaimedResumedExecution
impl<'de> Deserialize<'de> for ClaimedResumedExecution
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 ClaimedResumedExecution
impl PartialEq for ClaimedResumedExecution
Source§impl Serialize for ClaimedResumedExecution
impl Serialize for ClaimedResumedExecution
impl Eq for ClaimedResumedExecution
impl StructuralPartialEq for ClaimedResumedExecution
Auto Trait Implementations§
impl Freeze for ClaimedResumedExecution
impl RefUnwindSafe for ClaimedResumedExecution
impl Send for ClaimedResumedExecution
impl Sync for ClaimedResumedExecution
impl Unpin for ClaimedResumedExecution
impl UnsafeUnpin for ClaimedResumedExecution
impl UnwindSafe for ClaimedResumedExecution
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