Struct primitives::config::ValidatorWorkerConfig
source · pub struct ValidatorWorkerConfig {
pub max_channels: u32,
pub wait_time: Duration,
pub heartbeat_time: Duration,
pub health_threshold_promilles: u32,
pub health_unsignable_promilles: u32,
pub timeouts: Timeouts,
}
Expand description
Config values that are used in the validator worker only
Fields
max_channels: u32
The maximum number of Channel
s that the worker
can process for one tick.
wait_time: Duration
The Validator Worker tick time.
The Channel
s’ tick and the wait time should both
finish before running a new tick in the Validator Worker.
In milliseconds
heartbeat_time: Duration
The amount of time that should have passed before sending a new heartbeat.
In milliseconds
health_threshold_promilles: u32
The pro miles below which the ApproveState
becomes unhealthy in the Channel
’s Follower.
Also see: ApproveState.is_healthy
In pro milles (<= 1000)
health_unsignable_promilles: u32
The pro milles below which the ApproveState
will not be triggered and instead a RejectState
will be propagated by the Channel
’s Follower.
In pro milles (<= 1000)
timeouts: Timeouts
Trait Implementations
sourceimpl Clone for ValidatorWorkerConfig
impl Clone for ValidatorWorkerConfig
sourcefn clone(&self) -> ValidatorWorkerConfig
fn clone(&self) -> ValidatorWorkerConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ValidatorWorkerConfig
impl Debug for ValidatorWorkerConfig
sourceimpl<'de> Deserialize<'de> for ValidatorWorkerConfig
impl<'de> Deserialize<'de> for ValidatorWorkerConfig
sourcefn 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
sourceimpl PartialEq<ValidatorWorkerConfig> for ValidatorWorkerConfig
impl PartialEq<ValidatorWorkerConfig> for ValidatorWorkerConfig
sourcefn eq(&self, other: &ValidatorWorkerConfig) -> bool
fn eq(&self, other: &ValidatorWorkerConfig) -> bool
sourceimpl Serialize for ValidatorWorkerConfig
impl Serialize for ValidatorWorkerConfig
impl Eq for ValidatorWorkerConfig
impl StructuralEq for ValidatorWorkerConfig
impl StructuralPartialEq for ValidatorWorkerConfig
Auto Trait Implementations
impl RefUnwindSafe for ValidatorWorkerConfig
impl Send for ValidatorWorkerConfig
impl Sync for ValidatorWorkerConfig
impl Unpin for ValidatorWorkerConfig
impl UnwindSafe for ValidatorWorkerConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more