Enum ethcore::trace::RewardType
source · [−]pub enum RewardType {
Block,
Uncle,
EmptyStep,
External,
}
Expand description
Reward type.
Variants
Block
Block
Uncle
Uncle
EmptyStep
Empty step (AuthorityRound)
External
A reward directly attributed by an external protocol (e.g. block reward contract)
Trait Implementations
sourceimpl Clone for RewardType
impl Clone for RewardType
sourcefn clone(&self) -> RewardType
fn clone(&self) -> RewardType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RewardType
impl Debug for RewardType
sourceimpl Decodable for RewardType
impl Decodable for RewardType
sourcefn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
sourceimpl Encodable for RewardType
impl Encodable for RewardType
sourceimpl Into<RewardType> for RewardKind
impl Into<RewardType> for RewardKind
sourcefn into(self) -> RewardType
fn into(self) -> RewardType
Performs the conversion.
sourceimpl PartialEq<RewardType> for RewardType
impl PartialEq<RewardType> for RewardType
impl Copy for RewardType
impl StructuralPartialEq for RewardType
Auto Trait Implementations
impl RefUnwindSafe for RewardType
impl Send for RewardType
impl Sync for RewardType
impl Unpin for RewardType
impl UnwindSafe for RewardType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more