#[repr(u8)]pub enum SlashReason {
    RuntimeIncorrectResults = 128,
    RuntimeEquivocation = 129,
    RuntimeLiveness = 130,
}Expand description
Reason for slashing an entity.
Variants§
RuntimeIncorrectResults = 128
Slashing due to submission of incorrect results in runtime executor commitments.
RuntimeEquivocation = 129
Slashing due to signing two different executor commits or proposed batches for the same round.
RuntimeLiveness = 130
Slashing due to not doing the required work.
Trait Implementations§
Source§impl Clone for SlashReason
 
impl Clone for SlashReason
Source§fn clone(&self) -> SlashReason
 
fn clone(&self) -> SlashReason
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for SlashReason
 
impl Debug for SlashReason
Source§impl Decode for SlashReason
 
impl Decode for SlashReason
Source§fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
 
fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
Try to decode from a given CBOR value.
§fn try_default() -> Result<Self, DecodeError>where
    Self: Sized,
 
fn try_default() -> Result<Self, DecodeError>where
    Self: Sized,
Try to decode from a missing/null/undefined value.
§fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
    Self: Sized,
 
fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
    Self: Sized,
Try to decode from a given CBOR value, calling 
try_default in case the value is null or
undefined.Source§impl Encode for SlashReason
 
impl Encode for SlashReason
Source§impl Hash for SlashReason
 
impl Hash for SlashReason
Source§impl Ord for SlashReason
 
impl Ord for SlashReason
Source§fn cmp(&self, other: &SlashReason) -> Ordering
 
fn cmp(&self, other: &SlashReason) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SlashReason
 
impl PartialEq for SlashReason
Source§impl PartialOrd for SlashReason
 
impl PartialOrd for SlashReason
impl Eq for SlashReason
impl StructuralPartialEq for SlashReason
Auto Trait Implementations§
impl Freeze for SlashReason
impl RefUnwindSafe for SlashReason
impl Send for SlashReason
impl Sync for SlashReason
impl Unpin for SlashReason
impl UnwindSafe for SlashReason
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.