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
Auto Trait Implementations
impl !RefUnwindSafe for DelayConfig
impl Send for DelayConfig
impl Sync for DelayConfig
impl Unpin for DelayConfig
impl !UnwindSafe for DelayConfig
Blanket Implementations
Mutably borrows from an owned value. Read more