Struct aleph_bft::DelayConfig[][src]

pub struct DelayConfig {
    pub tick_interval: Duration,
    pub requests_interval: Duration,
    pub unit_broadcast_delay: Arc<dyn Fn(usize) -> Duration + Sync + Send + 'static>,
    pub unit_creation_delay: Arc<dyn Fn(usize) -> Duration + Sync + Send + 'static>,
}
Expand description

Configuration of several parameters related to delaying various tasks.

Fields

tick_interval: Duration

Tick frequency of the Member. Govers internal task queue of the Member.

requests_interval: Duration

After what delay, we repeat a request for a coord or parents.

unit_broadcast_delay: Arc<dyn Fn(usize) -> Duration + Sync + Send + 'static>

DelaySchedule(k) represents the delay between the kth and (k+1)th broadcast.

unit_creation_delay: Arc<dyn Fn(usize) -> Duration + Sync + Send + 'static>

DelaySchedule(k) represents the delay between creating the (k-1)th and kth unit.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.