Struct cfx_storage::ConsensusParam
source · pub struct ConsensusParam {
pub snapshot_epoch_count: u32,
pub era_epoch_count: u64,
}
Expand description
Consensus parameter is only configurable in test mode.
Fields§
§snapshot_epoch_count: u32
§era_epoch_count: u64
Trait Implementations§
source§impl Clone for ConsensusParam
impl Clone for ConsensusParam
source§fn clone(&self) -> ConsensusParam
fn clone(&self) -> ConsensusParam
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for ConsensusParam
impl Send for ConsensusParam
impl Sync for ConsensusParam
impl Unpin for ConsensusParam
impl UnwindSafe for ConsensusParam
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