pub enum AttritionScope {
PerProcess,
PerMachine,
PerZone,
}Expand description
The failure domain a reboot targets.
Controls how AttritionInjector selects victims.
PerMachine / PerZone reboot all collocated processes together — modeling
correlated failure — and require a .cluster()
topology. Without locality they are a no-op.
Variants§
PerProcess
Reboot a single random process (the historical behavior).
PerMachine
Reboot every process on a single random machine atomically.
PerZone
Reboot every process in a single random zone atomically.
Trait Implementations§
Source§impl Clone for AttritionScope
impl Clone for AttritionScope
Source§fn clone(&self) -> AttritionScope
fn clone(&self) -> AttritionScope
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 Copy for AttritionScope
Source§impl Debug for AttritionScope
impl Debug for AttritionScope
Source§impl Default for AttritionScope
impl Default for AttritionScope
Source§fn default() -> AttritionScope
fn default() -> AttritionScope
Returns the “default value” for a type. Read more
impl Eq for AttritionScope
Source§impl PartialEq for AttritionScope
impl PartialEq for AttritionScope
Source§fn eq(&self, other: &AttritionScope) -> bool
fn eq(&self, other: &AttritionScope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AttritionScope
Auto Trait Implementations§
impl Freeze for AttritionScope
impl RefUnwindSafe for AttritionScope
impl Send for AttritionScope
impl Sync for AttritionScope
impl Unpin for AttritionScope
impl UnsafeUnpin for AttritionScope
impl UnwindSafe for AttritionScope
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