Enum common_types::security_level::SecurityLevel[][src]

pub enum SecurityLevel {
    FullState,
    FullProofOfWork,
    PartialProofOfWork(BlockNumber),
}

Indication of how secure the chain is.

Variants

All blocks from genesis to chain head are known to have valid state transitions and PoW.

All blocks from genesis to chain head are known to have a valid PoW.

Some recent headers (the argument) are known to have a valid PoW.

Methods

impl SecurityLevel
[src]

true for FullPoW/FullState.

Trait Implementations

impl Debug for SecurityLevel
[src]

Formats the value using the given formatter. Read more

impl PartialEq for SecurityLevel
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Copy for SecurityLevel
[src]

impl Clone for SecurityLevel
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for SecurityLevel
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for SecurityLevel
[src]

Auto Trait Implementations

impl Send for SecurityLevel

impl Sync for SecurityLevel