[][src]Enum casperlabs_types::account::SetThresholdFailure

#[repr(i32)]
pub enum SetThresholdFailure {
    KeyManagementThreshold,
    DeploymentThreshold,
    PermissionDeniedError,
    InsufficientTotalWeight,
}

Errors that can occur while changing action thresholds (i.e. the total Weights of signing PublicKeys required to perform various actions) on an account.

Variants

KeyManagementThreshold

Setting the key-management threshold to a value lower than the deployment threshold is disallowed.

DeploymentThreshold

Setting the deployment threshold to a value greater than any other threshold is disallowed.

PermissionDeniedError

Caller doesn't have sufficient permissions to set new thresholds.

InsufficientTotalWeight

Setting a threshold to a value greater than the total weight of associated keys is disallowed.

Trait Implementations

impl Debug for SetThresholdFailure[src]

impl Display for SetThresholdFailure[src]

impl Eq for SetThresholdFailure[src]

impl Fail for SetThresholdFailure[src]

impl From<SetThresholdFailure> for ApiError[src]

impl PartialEq<SetThresholdFailure> for SetThresholdFailure[src]

impl StructuralEq for SetThresholdFailure[src]

impl StructuralPartialEq for SetThresholdFailure[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail
[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, 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.