[][src]Enum beacon_chain::BeaconChainError

pub enum BeaconChainError {
    InsufficientValidators,
    BadRecentBlockRoots,
    UnableToReadSlot,
    RevertedFinalizedEpoch {
        previous_epoch: Epoch,
        new_epoch: Epoch,
    },
    SlotClockDidNotStart,
    NoStateForSlot(Slot),
    UnableToFindTargetRoot(Slot),
    BeaconStateError(BeaconStateError),
    DBInconsistent(String),
    DBError(Error),
    ForkChoiceError(ForkChoiceError),
    MissingBeaconBlock(Hash256),
    MissingBeaconState(Hash256),
    SlotProcessingError(SlotProcessingError),
    UnableToAdvanceState(String),
    NoStateForAttestation {
        beacon_block_root: Hash256,
    },
    AttestationValidationError(AttestationValidationError),
    InvariantViolated(String),
}

Variants

InsufficientValidators
BadRecentBlockRoots
UnableToReadSlot
RevertedFinalizedEpoch

Fields of RevertedFinalizedEpoch

previous_epoch: Epochnew_epoch: Epoch
SlotClockDidNotStart
NoStateForSlot(Slot)
UnableToFindTargetRoot(Slot)
BeaconStateError(BeaconStateError)
DBInconsistent(String)
DBError(Error)
ForkChoiceError(ForkChoiceError)
MissingBeaconBlock(Hash256)
MissingBeaconState(Hash256)
SlotProcessingError(SlotProcessingError)
UnableToAdvanceState(String)
NoStateForAttestation

Fields of NoStateForAttestation

beacon_block_root: Hash256
AttestationValidationError(AttestationValidationError)
InvariantViolated(String)

Returned when an internal check fails, indicating corrupt data.

Trait Implementations

impl PartialEq<BeaconChainError> for BeaconChainError[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for BeaconChainError[src]

impl From<BlockOperationError<AttestationInvalid>> for BeaconChainError[src]

impl Debug for BeaconChainError[src]

Auto Trait Implementations

impl Send for BeaconChainError

impl Unpin for BeaconChainError

impl Sync for BeaconChainError

impl UnwindSafe for BeaconChainError

impl RefUnwindSafe for BeaconChainError

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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Erased for T