#[non_exhaustive]pub struct ExpiredLeasesCursor {
pub expires_at_ms: TimestampMs,
pub execution_id: ExecutionId,
}Expand description
Cursor for crate::engine_backend::EngineBackend::list_expired_leases
(RFC-025 §9-locked). Tuple (not bare ExecutionId) so pagination
is stable under equal-expiry: ZRANGEBYSCORE with LIMIT keyed
on score alone duplicates or skips when two leases share a
millisecond.
Backends order strictly by
(expires_at_ms ASC, execution_id ASC).
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.expires_at_ms: TimestampMs§execution_id: ExecutionIdImplementations§
Source§impl ExpiredLeasesCursor
impl ExpiredLeasesCursor
pub fn new(expires_at_ms: TimestampMs, execution_id: ExecutionId) -> Self
Trait Implementations§
Source§impl Clone for ExpiredLeasesCursor
impl Clone for ExpiredLeasesCursor
Source§fn clone(&self) -> ExpiredLeasesCursor
fn clone(&self) -> ExpiredLeasesCursor
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 ExpiredLeasesCursor
impl Debug for ExpiredLeasesCursor
Source§impl PartialEq for ExpiredLeasesCursor
impl PartialEq for ExpiredLeasesCursor
impl Eq for ExpiredLeasesCursor
impl StructuralPartialEq for ExpiredLeasesCursor
Auto Trait Implementations§
impl Freeze for ExpiredLeasesCursor
impl RefUnwindSafe for ExpiredLeasesCursor
impl Send for ExpiredLeasesCursor
impl Sync for ExpiredLeasesCursor
impl Unpin for ExpiredLeasesCursor
impl UnsafeUnpin for ExpiredLeasesCursor
impl UnwindSafe for ExpiredLeasesCursor
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