Enum common_types::security_level::SecurityLevel [−][src]
pub enum SecurityLevel {
FullState,
FullProofOfWork,
PartialProofOfWork(BlockNumber),
}Indication of how secure the chain is.
Variants
FullStateAll blocks from genesis to chain head are known to have valid state transitions and PoW.
FullProofOfWorkAll 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 SecurityLevelTrait Implementations
impl Debug for SecurityLevel[src]
impl Debug for SecurityLevelfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for SecurityLevel[src]
impl PartialEq for SecurityLevelfn eq(&self, other: &SecurityLevel) -> bool[src]
fn eq(&self, other: &SecurityLevel) -> boolThis 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) -> boolThis method tests for !=.
impl Copy for SecurityLevel[src]
impl Copy for SecurityLevelimpl Clone for SecurityLevel[src]
impl Clone for SecurityLevelfn clone(&self) -> SecurityLevel[src]
fn clone(&self) -> SecurityLevelReturns 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 SecurityLevelfn 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 SecurityLevelAuto Trait Implementations
impl Send for SecurityLevel
impl Send for SecurityLevelimpl Sync for SecurityLevel
impl Sync for SecurityLevel