[][src]Struct overlord::DurationConfig

pub struct DurationConfig {
    pub propose_ratio: u64,
    pub prevote_ratio: u64,
    pub precommit_ratio: u64,
    pub brake_ratio: u64,

The setting of the timeout interval of each step.


propose_ratio: u64

The proportion of propose timeout to the height interval.

prevote_ratio: u64

The proportion of prevote timeout to the height interval.

precommit_ratio: u64

The proportion of precommit timeout to the height interval.

brake_ratio: u64

The proportion of retry choke message timeout to the height interval.


impl DurationConfig[src]

pub fn new(
    propose_ratio: u64,
    prevote_ratio: u64,
    precommit_ratio: u64,
    brake_ratio: u64
) -> Self

Create a consensus timeout configuration.

Trait Implementations

impl Clone for DurationConfig[src]

impl Debug for DurationConfig[src]

impl Decodable for DurationConfig[src]

impl Default for DurationConfig[src]

impl<'de> Deserialize<'de> for DurationConfig[src]

impl Encodable for DurationConfig[src]

impl Eq for DurationConfig[src]

impl PartialEq<DurationConfig> for DurationConfig[src]

impl Serialize for DurationConfig[src]

impl StructuralEq for DurationConfig[src]

impl StructuralPartialEq for DurationConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Cloneable for T where
    T: 'static + Send + Sync + Debug + DynClone

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 

impl<T> DynClone for T where
    T: Clone

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.