[][src]Enum beacon_chain::test_utils::AttestationStrategy

pub enum AttestationStrategy {
    AllValidators,
    SomeValidators(Vec<usize>),
}

Indicates how the BeaconChainHarness should produce attestations.

Variants

AllValidators

All validators attest to whichever block the BeaconChainHarness has produced.

SomeValidators(Vec<usize>)

Only the given validators should attest. All others should fail to produce attestations.

Trait Implementations

impl Clone for AttestationStrategy[src]

impl Debug for AttestationStrategy[src]

Auto Trait Implementations

impl Send for AttestationStrategy

impl Unpin for AttestationStrategy

impl Sync for AttestationStrategy

impl UnwindSafe for AttestationStrategy

impl RefUnwindSafe for AttestationStrategy

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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