pub struct RepairAccounting {
pub repair_attempts: Vec<RepairAttemptId>,
}Expand description
Holds repair accounting application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§repair_attempts: Vec<RepairAttemptId>Attempt identifier or attempt history for bounded retry/repair. Use it to preserve ordering and avoid retry loops that cannot be audited.
Implementations§
Source§impl RepairAccounting
impl RepairAccounting
Sourcepub fn record_attempt(&mut self, repair_attempt_id: RepairAttemptId)
pub fn record_attempt(&mut self, repair_attempt_id: RepairAttemptId)
Sets record attempt on the value and returns it. This mutates the in-memory repair tracker by recording the attempt id.
Trait Implementations§
Source§impl Clone for RepairAccounting
impl Clone for RepairAccounting
Source§fn clone(&self) -> RepairAccounting
fn clone(&self) -> RepairAccounting
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 moreSource§impl Debug for RepairAccounting
impl Debug for RepairAccounting
Source§impl Default for RepairAccounting
impl Default for RepairAccounting
Source§fn default() -> RepairAccounting
fn default() -> RepairAccounting
Returns the “default value” for a type. Read more
Source§impl PartialEq for RepairAccounting
impl PartialEq for RepairAccounting
Source§fn eq(&self, other: &RepairAccounting) -> bool
fn eq(&self, other: &RepairAccounting) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RepairAccounting
impl StructuralPartialEq for RepairAccounting
Auto Trait Implementations§
impl Freeze for RepairAccounting
impl RefUnwindSafe for RepairAccounting
impl Send for RepairAccounting
impl Sync for RepairAccounting
impl Unpin for RepairAccounting
impl UnsafeUnpin for RepairAccounting
impl UnwindSafe for RepairAccounting
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