Enum ethcore::engines::block_reward::RewardKind
[−]
[src]
#[repr(u8)]pub enum RewardKind { Author, Uncle, EmptyStep, External, }
The kind of block reward. Depending on the consensus engine the allocated block reward might have different semantics which could lead e.g. to different reward values.
Variants
Author
Reward attributed to the block author.
Uncle
Reward attributed to the block uncle(s).
EmptyStep
Reward attributed to the author(s) of empty step(s) included in the block (AuthorityRound engine).
External
Reward attributed by an external protocol (e.g. block reward contract).
Trait Implementations
impl PartialEq for RewardKind
[src]
impl PartialEq for RewardKind
fn eq(&self, __arg_0: &RewardKind) -> bool
[src]
fn eq(&self, __arg_0: &RewardKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for RewardKind
[src]
impl Eq for RewardKind
impl Clone for RewardKind
[src]
impl Clone for RewardKind
fn clone(&self) -> RewardKind
[src]
fn clone(&self) -> RewardKind
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 Copy for RewardKind
[src]
impl Copy for RewardKind
impl Debug for RewardKind
[src]
impl Debug for RewardKind
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<RewardKind> for u16
[src]
impl From<RewardKind> for u16
fn from(reward_kind: RewardKind) -> Self
[src]
fn from(reward_kind: RewardKind) -> Self
Performs the conversion.
impl Into<RewardType> for RewardKind
[src]
impl Into<RewardType> for RewardKind
fn into(self) -> RewardType
[src]
fn into(self) -> RewardType
Performs the conversion.
Auto Trait Implementations
impl Send for RewardKind
impl Send for RewardKind
impl Sync for RewardKind
impl Sync for RewardKind