pub enum RepairPolicy {
Observe,
Repair,
}Expand description
What the guard does when it can repair a violation.
Variants§
Observe
Report violations and pass every event through unchanged.
Repair
Report violations and repair the ones with a lossless fix: close open
items before a terminal event, drop a duplicate item.completed, and
open a turn before an orphan terminal turn event.
Trait Implementations§
Source§impl Clone for RepairPolicy
impl Clone for RepairPolicy
impl Copy for RepairPolicy
Source§impl Debug for RepairPolicy
impl Debug for RepairPolicy
impl Eq for RepairPolicy
Source§impl PartialEq for RepairPolicy
impl PartialEq for RepairPolicy
impl StructuralPartialEq for RepairPolicy
Auto Trait Implementations§
impl Forget for RepairPolicy
impl Freeze for RepairPolicy
impl Move for RepairPolicy
impl RefUnwindSafe for RepairPolicy
impl Send for RepairPolicy
impl Sync for RepairPolicy
impl Unpin for RepairPolicy
impl UnsafeUnpin for RepairPolicy
impl UnwindSafe for RepairPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.