[][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.

Fields

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.

Methods

impl DurationConfig[src]

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

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DynClone for T where
    T: Clone
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.