[][src]Enum frame_support::weights::SimpleDispatchInfo

pub enum SimpleDispatchInfo {
    FixedNormal(Weight),
    MaxNormal,
    FreeNormal,
    FixedOperational(Weight),
    MaxOperational,
    FreeOperational,
}

Default type used with the #[weight = x] attribute in a substrate chain.

A user may pass in any other type that implements the correct traits. If not, the Default implementation of SimpleDispatchInfo is used.

For each generalized group (Normal and Operation):

As for the generalized groups themselves:

Variants

FixedNormal(Weight)

A normal dispatch with fixed weight.

MaxNormal

A normal dispatch with the maximum weight.

FreeNormal

A normal dispatch with no weight.

FixedOperational(Weight)

An operational dispatch with fixed weight.

MaxOperational

An operational dispatch with the maximum weight.

FreeOperational

An operational dispatch with no weight.

Methods

impl SimpleDispatchInfo[src]

pub fn zero() -> Self[src]

An additive zero variant of SimpleDispatchInfo.

Trait Implementations

impl<T> ClassifyDispatch<T> for SimpleDispatchInfo[src]

impl Clone for SimpleDispatchInfo[src]

impl Copy for SimpleDispatchInfo[src]

impl Default for SimpleDispatchInfo[src]

impl From<SimpleDispatchInfo> for DispatchClass[src]

impl PaysFee for SimpleDispatchInfo[src]

impl<T> WeighData<T> for SimpleDispatchInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for SimpleDispatchInfo

impl Send for SimpleDispatchInfo

impl Sync for SimpleDispatchInfo

impl Unpin for SimpleDispatchInfo

impl UnwindSafe for SimpleDispatchInfo

Blanket Implementations

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

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

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

impl<T> CheckedConversion for T[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized
[src]

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

impl<T> InitializableFromZeroed for T where
    T: Default
[src]

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

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 
[src]

fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

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

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]