pub struct RepairPolicyController;Expand description
Holds repair policy controller 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.
Implementations§
Source§impl RepairPolicyController
impl RepairPolicyController
Sourcepub fn next_attempt(
&self,
contract: &OutputContract,
report: &ValidationErrorReport,
accounting: &RepairAccounting,
) -> RepairDecision
pub fn next_attempt( &self, contract: &OutputContract, report: &ValidationErrorReport, accounting: &RepairAccounting, ) -> RepairDecision
Builds the next attempt value. This is data construction and performs no I/O, journal append, event publication, or process work.
Trait Implementations§
Source§impl Clone for RepairPolicyController
impl Clone for RepairPolicyController
Source§fn clone(&self) -> RepairPolicyController
fn clone(&self) -> RepairPolicyController
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 RepairPolicyController
impl Debug for RepairPolicyController
Source§impl Default for RepairPolicyController
impl Default for RepairPolicyController
Source§fn default() -> RepairPolicyController
fn default() -> RepairPolicyController
Returns the “default value” for a type. Read more
Source§impl PartialEq for RepairPolicyController
impl PartialEq for RepairPolicyController
Source§fn eq(&self, other: &RepairPolicyController) -> bool
fn eq(&self, other: &RepairPolicyController) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RepairPolicyController
impl StructuralPartialEq for RepairPolicyController
Auto Trait Implementations§
impl Freeze for RepairPolicyController
impl RefUnwindSafe for RepairPolicyController
impl Send for RepairPolicyController
impl Sync for RepairPolicyController
impl Unpin for RepairPolicyController
impl UnsafeUnpin for RepairPolicyController
impl UnwindSafe for RepairPolicyController
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