Enum common_types::security_level::SecurityLevel [−][src]
pub enum SecurityLevel { FullState, FullProofOfWork, PartialProofOfWork(BlockNumber), }
Indication of how secure the chain is.
Variants
FullState
All blocks from genesis to chain head are known to have valid state transitions and PoW.
FullProofOfWork
All blocks from genesis to chain head are known to have a valid PoW.
PartialProofOfWork(BlockNumber)
Some recent headers (the argument) are known to have a valid PoW.
Methods
impl SecurityLevel
[src]
impl SecurityLevel
Trait Implementations
impl Debug for SecurityLevel
[src]
impl Debug for SecurityLevel
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for SecurityLevel
[src]
impl PartialEq for SecurityLevel
fn eq(&self, other: &SecurityLevel) -> bool
[src]
fn eq(&self, other: &SecurityLevel) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SecurityLevel) -> bool
[src]
fn ne(&self, other: &SecurityLevel) -> bool
This method tests for !=
.
impl Copy for SecurityLevel
[src]
impl Copy for SecurityLevel
impl Clone for SecurityLevel
[src]
impl Clone for SecurityLevel
fn clone(&self) -> SecurityLevel
[src]
fn clone(&self) -> SecurityLevel
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Hash for SecurityLevel
[src]
impl Hash for SecurityLevel
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for SecurityLevel
[src]
impl Eq for SecurityLevel
Auto Trait Implementations
impl Send for SecurityLevel
impl Send for SecurityLevel
impl Sync for SecurityLevel
impl Sync for SecurityLevel