[][src]Enum beacon_chain::events::EventKind

pub enum EventKind<T: EthSpec> {
    BeaconHeadChanged {
        reorg: bool,
        current_head_beacon_block_root: Hash256,
        previous_head_beacon_block_root: Hash256,
    },
    BeaconFinalization {
        epoch: Epoch,
        root: Hash256,
    },
    BeaconBlockImported {
        block_root: Hash256,
        block: Box<BeaconBlock<T>>,
    },
    BeaconBlockRejected {
        reason: String,
        block: Box<BeaconBlock<T>>,
    },
    BeaconAttestationImported {
        attestation: Box<Attestation<T>>,
    },
    BeaconAttestationRejected {
        reason: String,
        attestation: Box<Attestation<T>>,
    },
}

Variants

BeaconHeadChanged

Fields of BeaconHeadChanged

reorg: boolcurrent_head_beacon_block_root: Hash256previous_head_beacon_block_root: Hash256
BeaconFinalization

Fields of BeaconFinalization

epoch: Epochroot: Hash256
BeaconBlockImported

Fields of BeaconBlockImported

block_root: Hash256block: Box<BeaconBlock<T>>
BeaconBlockRejected

Fields of BeaconBlockRejected

reason: Stringblock: Box<BeaconBlock<T>>
BeaconAttestationImported

Fields of BeaconAttestationImported

attestation: Box<Attestation<T>>
BeaconAttestationRejected

Fields of BeaconAttestationRejected

reason: Stringattestation: Box<Attestation<T>>

Trait Implementations

impl<T: Debug + EthSpec> Debug for EventKind<T>[src]

impl<'de, T: EthSpec> Deserialize<'de> for EventKind<T> where
    T: EthSpec
[src]

impl<T: EthSpec> Serialize for EventKind<T> where
    T: EthSpec
[src]

Auto Trait Implementations

impl<T> Send for EventKind<T> where
    <T as EthSpec>::MaxAttestations: Send,
    <T as EthSpec>::MaxAttesterSlashings: Send,
    <T as EthSpec>::MaxDeposits: Send,
    <T as EthSpec>::MaxProposerSlashings: Send,
    <T as EthSpec>::MaxTransfers: Send,
    <T as EthSpec>::MaxValidatorsPerCommittee: Send,
    <T as EthSpec>::MaxVoluntaryExits: Send

impl<T> Unpin for EventKind<T>

impl<T> Sync for EventKind<T> where
    <T as EthSpec>::MaxAttestations: Sync,
    <T as EthSpec>::MaxAttesterSlashings: Sync,
    <T as EthSpec>::MaxDeposits: Sync,
    <T as EthSpec>::MaxProposerSlashings: Sync,
    <T as EthSpec>::MaxTransfers: Sync,
    <T as EthSpec>::MaxValidatorsPerCommittee: Sync,
    <T as EthSpec>::MaxVoluntaryExits: Sync

impl<T> UnwindSafe for EventKind<T> where
    <T as EthSpec>::MaxAttestations: UnwindSafe,
    <T as EthSpec>::MaxAttesterSlashings: UnwindSafe,
    <T as EthSpec>::MaxDeposits: UnwindSafe,
    <T as EthSpec>::MaxProposerSlashings: UnwindSafe,
    <T as EthSpec>::MaxTransfers: UnwindSafe,
    <T as EthSpec>::MaxValidatorsPerCommittee: UnwindSafe,
    <T as EthSpec>::MaxVoluntaryExits: UnwindSafe

impl<T> RefUnwindSafe for EventKind<T> where
    <T as EthSpec>::MaxAttestations: RefUnwindSafe,
    <T as EthSpec>::MaxAttesterSlashings: RefUnwindSafe,
    <T as EthSpec>::MaxDeposits: RefUnwindSafe,
    <T as EthSpec>::MaxProposerSlashings: RefUnwindSafe,
    <T as EthSpec>::MaxTransfers: RefUnwindSafe,
    <T as EthSpec>::MaxValidatorsPerCommittee: RefUnwindSafe,
    <T as EthSpec>::MaxVoluntaryExits: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for T[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Erased for T