Struct aleph_bft::DelayConfig
source · [−]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. Governs 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
sourceimpl Clone for DelayConfig
impl Clone for DelayConfig
sourcefn clone(&self) -> DelayConfig
fn clone(&self) -> DelayConfig
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 more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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