pub enum ConsensusConfig {
PoA {
signing_key: Address,
},
}
Variants§
Trait Implementations§
source§impl Clone for ConsensusConfig
impl Clone for ConsensusConfig
source§fn clone(&self) -> ConsensusConfig
fn clone(&self) -> ConsensusConfig
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 moresource§impl Debug for ConsensusConfig
impl Debug for ConsensusConfig
source§impl<'de> Deserialize<'de> for ConsensusConfig
impl<'de> Deserialize<'de> for ConsensusConfig
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
source§impl GenesisCommitment for ConsensusConfig
impl GenesisCommitment for ConsensusConfig
source§impl PartialEq<ConsensusConfig> for ConsensusConfig
impl PartialEq<ConsensusConfig> for ConsensusConfig
source§fn eq(&self, other: &ConsensusConfig) -> bool
fn eq(&self, other: &ConsensusConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ConsensusConfig
impl Serialize for ConsensusConfig
impl Eq for ConsensusConfig
impl StructuralEq for ConsensusConfig
impl StructuralPartialEq for ConsensusConfig
Auto Trait Implementations§
impl RefUnwindSafe for ConsensusConfig
impl Send for ConsensusConfig
impl Sync for ConsensusConfig
impl Unpin for ConsensusConfig
impl UnwindSafe for ConsensusConfig
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more