Enum oasis_core_runtime::consensus::staking::SlashReason
source · #[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§fn eq(&self, other: &SlashReason) -> bool
fn eq(&self, other: &SlashReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SlashReason
impl PartialOrd for SlashReason
source§fn partial_cmp(&self, other: &SlashReason) -> Option<Ordering>
fn partial_cmp(&self, other: &SlashReason) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.