Struct noble_im_online::UnresponsivenessOffence [−][src]
An offence that is filed if a validator didn’t send a heartbeat message.
Fields
session_index: SessionIndex
The current session index in which we report the unresponsive validators.
It acts as a time measure for unresponsiveness reports and effectively will always point at the end of the session.
validator_set_count: u32
The size of the validator set in current session/era.
offenders: Vec<Offender>
Authorities that were unresponsive during the current era.
Trait Implementations
impl<Offender: Clone> Clone for UnresponsivenessOffence<Offender>
[src]
fn clone(&self) -> UnresponsivenessOffence<Offender>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Offender> Debug for UnresponsivenessOffence<Offender> where
Offender: Debug,
[src]
Offender: Debug,
impl<Offender: Eq> Eq for UnresponsivenessOffence<Offender>
[src]
impl<Offender: Clone> Offence<Offender> for UnresponsivenessOffence<Offender>
[src]
const ID: Kind
[src]
type TimeSlot = SessionIndex
A type that represents a point in time on an abstract timescale. Read more
fn offenders(&self) -> Vec<Offender>
[src]
fn session_index(&self) -> SessionIndex
[src]
fn validator_set_count(&self) -> u32
[src]
fn time_slot(&self) -> Self::TimeSlot
[src]
fn slash_fraction(offenders: u32, validator_set_count: u32) -> Perbill
[src]
impl<Offender: PartialEq> PartialEq<UnresponsivenessOffence<Offender>> for UnresponsivenessOffence<Offender>
[src]
fn eq(&self, other: &UnresponsivenessOffence<Offender>) -> bool
[src]
fn ne(&self, other: &UnresponsivenessOffence<Offender>) -> bool
[src]
impl<Offender> StructuralEq for UnresponsivenessOffence<Offender>
[src]
impl<Offender> StructuralPartialEq for UnresponsivenessOffence<Offender>
[src]
Auto Trait Implementations
impl<Offender> RefUnwindSafe for UnresponsivenessOffence<Offender> where
Offender: RefUnwindSafe,
Offender: RefUnwindSafe,
impl<Offender> Send for UnresponsivenessOffence<Offender> where
Offender: Send,
Offender: Send,
impl<Offender> Sync for UnresponsivenessOffence<Offender> where
Offender: Sync,
Offender: Sync,
impl<Offender> Unpin for UnresponsivenessOffence<Offender> where
Offender: Unpin,
Offender: Unpin,
impl<Offender> UnwindSafe for UnresponsivenessOffence<Offender> where
Offender: UnwindSafe,
Offender: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
pub fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
pub fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IsType<T> for T
[src]
pub fn from_ref(t: &T) -> &T
[src]
pub fn into_ref(&self) -> &T
[src]
pub fn from_mut(t: &mut T) -> &mut T
[src]
pub fn into_mut(&mut self) -> &mut T
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
pub fn from_ref(outer: &Outer) -> &T
[src]
Get a reference to the inner from the outer.
pub fn from_mut(outer: &mut Outer) -> &mut T
[src]
Get a mutable reference to the inner from the outer.
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Member for T where
T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone,
[src]
T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
pub fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Self: UniqueSaturatedFrom<T>,
pub fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Self: UniqueSaturatedInto<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
T: UncheckedFrom<S>,
pub fn unchecked_into(self) -> T
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
T: Bounded,
S: TryInto<T>,
pub fn unique_saturated_into(self) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,