pub struct WorkflowBudgetAuditProjectionLease {
pub tenant_id: WorkflowTenantId,
pub projection_id: WorkflowBudgetAuditProjectionId,
pub owner: WorkerId,
pub cursor: WorkflowBudgetAuditCursor,
pub fencing_token: u64,
pub expires_at_ms: u64,
}Expand description
Fenced ownership of one named tenant-budget audit projection.
Fields§
§tenant_id: WorkflowTenantIdTenant whose audit stream is projected.
projection_id: WorkflowBudgetAuditProjectionIdStable identity of the projection.
owner: WorkerIdWorker currently owning the projection.
cursor: WorkflowBudgetAuditCursorLast fully acknowledged audit cursor.
fencing_token: u64Monotonic token invalidating superseded projector instances.
expires_at_ms: u64Store-authoritative lease expiration in Unix milliseconds.
Implementations§
Source§impl WorkflowBudgetAuditProjectionLease
impl WorkflowBudgetAuditProjectionLease
Sourcepub fn tenant_id(&self) -> &WorkflowTenantId
pub fn tenant_id(&self) -> &WorkflowTenantId
Tenant whose audit stream is projected.
Sourcepub fn projection_id(&self) -> &WorkflowBudgetAuditProjectionId
pub fn projection_id(&self) -> &WorkflowBudgetAuditProjectionId
Stable identity of the projection.
Sourcepub const fn cursor(&self) -> WorkflowBudgetAuditCursor
pub const fn cursor(&self) -> WorkflowBudgetAuditCursor
Last fully acknowledged audit cursor.
Sourcepub const fn fencing_token(&self) -> u64
pub const fn fencing_token(&self) -> u64
Monotonic token invalidating superseded projector instances.
Sourcepub const fn expires_at_ms(&self) -> u64
pub const fn expires_at_ms(&self) -> u64
Store-authoritative lease expiration in Unix milliseconds.
Trait Implementations§
Source§impl Clone for WorkflowBudgetAuditProjectionLease
impl Clone for WorkflowBudgetAuditProjectionLease
Source§fn clone(&self) -> WorkflowBudgetAuditProjectionLease
fn clone(&self) -> WorkflowBudgetAuditProjectionLease
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 moreimpl Eq for WorkflowBudgetAuditProjectionLease
impl StructuralPartialEq for WorkflowBudgetAuditProjectionLease
Auto Trait Implementations§
impl Freeze for WorkflowBudgetAuditProjectionLease
impl RefUnwindSafe for WorkflowBudgetAuditProjectionLease
impl Send for WorkflowBudgetAuditProjectionLease
impl Sync for WorkflowBudgetAuditProjectionLease
impl Unpin for WorkflowBudgetAuditProjectionLease
impl UnsafeUnpin for WorkflowBudgetAuditProjectionLease
impl UnwindSafe for WorkflowBudgetAuditProjectionLease
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