pub struct FaultToleranceConfig {
pub enable_predictive_detection: bool,
pub enable_automatic_recovery: bool,
pub recoverytimeout_seconds: u64,
pub checkpoint_frequency_seconds: u64,
pub maxretries: u32,
pub level: FaultToleranceLevel,
pub checkpoint_interval: Duration,
}
Expand description
Configuration for fault tolerance
Fields§
§enable_predictive_detection: bool
Enable predictive failure detection
enable_automatic_recovery: bool
Enable automatic recovery
recoverytimeout_seconds: u64
Recovery timeout in seconds
checkpoint_frequency_seconds: u64
Checkpoint frequency in seconds
maxretries: u32
Maximum retries for failed tasks
level: FaultToleranceLevel
Fault tolerance level
checkpoint_interval: Duration
Checkpoint interval
Trait Implementations§
Source§impl Clone for FaultToleranceConfig
impl Clone for FaultToleranceConfig
Source§fn clone(&self) -> FaultToleranceConfig
fn clone(&self) -> FaultToleranceConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 FaultToleranceConfig
impl Debug for FaultToleranceConfig
Source§impl Default for FaultToleranceConfig
impl Default for FaultToleranceConfig
Source§impl<'de> Deserialize<'de> for FaultToleranceConfig
impl<'de> Deserialize<'de> for FaultToleranceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FaultToleranceConfig
impl RefUnwindSafe for FaultToleranceConfig
impl Send for FaultToleranceConfig
impl Sync for FaultToleranceConfig
impl Unpin for FaultToleranceConfig
impl UnwindSafe for FaultToleranceConfig
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more