Struct overlord::DurationConfig
source · [−]pub struct DurationConfig {
pub propose_ratio: u64,
pub prevote_ratio: u64,
pub precommit_ratio: u64,
pub brake_ratio: u64,
}
Expand description
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.
Implementations
Trait Implementations
sourceimpl Clone for DurationConfig
impl Clone for DurationConfig
sourcefn clone(&self) -> DurationConfig
fn clone(&self) -> DurationConfig
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
sourceimpl Debug for DurationConfig
impl Debug for DurationConfig
sourceimpl Decodable for DurationConfig
impl Decodable for DurationConfig
sourcefn decode(r: &Rlp<'_>) -> Result<Self, DecoderError>
fn decode(r: &Rlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
sourceimpl Default for DurationConfig
impl Default for DurationConfig
sourcefn default() -> DurationConfig
fn default() -> DurationConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for DurationConfig
impl<'de> Deserialize<'de> for DurationConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Encodable for DurationConfig
impl Encodable for DurationConfig
sourceimpl PartialEq<DurationConfig> for DurationConfig
impl PartialEq<DurationConfig> for DurationConfig
sourcefn eq(&self, other: &DurationConfig) -> bool
fn eq(&self, other: &DurationConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DurationConfig) -> bool
fn ne(&self, other: &DurationConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for DurationConfig
impl Serialize for DurationConfig
impl Eq for DurationConfig
impl StructuralEq for DurationConfig
impl StructuralPartialEq for DurationConfig
Auto Trait Implementations
impl RefUnwindSafe for DurationConfig
impl Send for DurationConfig
impl Sync for DurationConfig
impl Unpin for DurationConfig
impl UnwindSafe for DurationConfig
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