pub struct VotingConfig {
pub vote_timeout: Duration,
pub allow_duplicate_votes: bool,
pub require_signatures: bool,
pub max_votes_per_authority: usize,
}Expand description
Voting configuration
Fields§
§vote_timeout: DurationMaximum time to collect votes
allow_duplicate_votes: boolAllow duplicate votes (last one wins)
require_signatures: boolRequire vote signatures
Maximum votes per authority per round
Trait Implementations§
Source§impl Clone for VotingConfig
impl Clone for VotingConfig
Source§fn clone(&self) -> VotingConfig
fn clone(&self) -> VotingConfig
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 VotingConfig
impl Debug for VotingConfig
Source§impl Default for VotingConfig
impl Default for VotingConfig
Source§impl<'de> Deserialize<'de> for VotingConfig
impl<'de> Deserialize<'de> for VotingConfig
Source§fn 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
Auto Trait Implementations§
impl Freeze for VotingConfig
impl RefUnwindSafe for VotingConfig
impl Send for VotingConfig
impl Sync for VotingConfig
impl Unpin for VotingConfig
impl UnwindSafe for VotingConfig
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