Struct primitives::config::Timeouts
source · pub struct Timeouts {
pub propagation: Duration,
pub fetch: Duration,
pub all_campaigns: Duration,
pub channel_tick: Duration,
}Fields
propagation: DurationSets the timeout for propagating a Validator message (MessageTypes)
to a validator.
In milliseconds
fetch: DurationThe Client timeout for SentryApi.
This includes all requests made to sentry except propagating messages.
When propagating messages we make requests to foreign Sentry
instances and we use a separate timeout -
Config.timeouts.propagation.
In milliseconds
all_campaigns: DurationThe Client timeout for SentryApi when collecting all channels
and Validators using the /campaign/list route.
In milliseconds
channel_tick: DurationThe timeout for a single tick of a Channel in
the Validator Worker.
This timeout is applied to both the leader and follower ticks.
In milliseconds
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Timeouts
impl<'de> Deserialize<'de> for Timeouts
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
impl Eq for Timeouts
impl StructuralEq for Timeouts
impl StructuralPartialEq for Timeouts
Auto Trait Implementations
impl RefUnwindSafe for Timeouts
impl Send for Timeouts
impl Sync for Timeouts
impl Unpin for Timeouts
impl UnwindSafe for Timeouts
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