pub struct TimeoutValues {
pub propose: Duration,
pub prevote: Duration,
pub precommit: Duration,
pub rebroadcast: Duration,
}Expand description
The timeout values for the consensus engine.
Fields§
§propose: DurationThe timeout for the propose step.
prevote: DurationThe timeout for the prevote step.
precommit: DurationThe timeout for the precommit step.
rebroadcast: DurationTimeout to rebroadcast the last prevote.
Implementations§
Source§impl TimeoutValues
impl TimeoutValues
Sourcepub fn get(&self, kind: TimeoutKind) -> Duration
pub fn get(&self, kind: TimeoutKind) -> Duration
Get the timeout for a given timeout kind.
Trait Implementations§
Source§impl Clone for TimeoutValues
impl Clone for TimeoutValues
Source§fn clone(&self) -> TimeoutValues
fn clone(&self) -> TimeoutValues
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeoutValues
impl Debug for TimeoutValues
Auto Trait Implementations§
impl Freeze for TimeoutValues
impl RefUnwindSafe for TimeoutValues
impl Send for TimeoutValues
impl Sync for TimeoutValues
impl Unpin for TimeoutValues
impl UnwindSafe for TimeoutValues
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more