[][src]Enum bls_signature_aggregator::signature_aggregator::AccumulationError

pub enum AccumulationError {
    NotEnoughShares,
    AlreadyAccumulated,
    InvalidShare,
    Serialise(Error),
    Combine(Error),
}

Error returned from SignatureAccumulator::add.

Variants

NotEnoughShares

There are not enough signature shares yet, more need to be added. This is not a failure.

AlreadyAccumulated

Enough signature share were already collected before and adding more has no effect. This is not a failure.

InvalidShare

The signature share being added is invalid. Such share is rejected but the already collected shares are kept intact. If enough new valid shares are collected afterwards, the accumulation might still succeed.

Serialise(Error)

The payload failed to be serialised and can't be inserted into the accumulator. This doesn't affect other entries already present and the accumulator can still be used normally afterwards. In practice, this error should never happen unless the host machine runs out of memory or a similar catastrophic failure.

Combine(Error)

The signature combination failed even though there are enough valid signature shares. This should probably never happen.

Trait Implementations

impl Debug for AccumulationError[src]

impl Display for AccumulationError[src]

impl Error for AccumulationError[src]

impl From<Box<ErrorKind>> for AccumulationError[src]

impl From<Error> for AccumulationError[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail, 

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

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

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

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

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>,