[][src]Enum casper_node::effect::announcements::ConsensusAnnouncement

pub enum ConsensusAnnouncement<I> {
    Finalized(Box<FinalizedBlock>),
    Handled(Box<BlockHeader>),
    Fault {
        era_id: EraId,
        public_key: Box<PublicKey>,
        timestamp: Timestamp,
    },
    DisconnectFromPeer(I),
}

A consensus announcement.

Variants

Finalized(Box<FinalizedBlock>)

A block was finalized.

Handled(Box<BlockHeader>)

A linear chain block has been handled.

Fault

An equivocation has been detected.

Fields of Fault

era_id: EraId

The Id of the era in which the equivocation was detected

public_key: Box<PublicKey>

The public key of the equivocator.

timestamp: Timestamp

The timestamp when the evidence of the equivocation was detected.

DisconnectFromPeer(I)

We want to disconnect from a peer due to its transgressions.

Trait Implementations

impl<I: Debug> Debug for ConsensusAnnouncement<I>[src]

impl<I> Display for ConsensusAnnouncement<I> where
    I: Display
[src]

impl From<ConsensusAnnouncement<NodeId>> for Event[src]

impl From<ConsensusAnnouncement<NodeId>> for Event[src]

Auto Trait Implementations

impl<I> RefUnwindSafe for ConsensusAnnouncement<I> where
    I: RefUnwindSafe
[src]

impl<I> Send for ConsensusAnnouncement<I> where
    I: Send
[src]

impl<I> Sync for ConsensusAnnouncement<I> where
    I: Sync
[src]

impl<I> Unpin for ConsensusAnnouncement<I> where
    I: Unpin
[src]

impl<I> UnwindSafe for ConsensusAnnouncement<I> where
    I: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]