Trait frame_support::dispatch::ClassifyDispatch

source ·
pub trait ClassifyDispatch<T> {
    // Required method
    fn classify_dispatch(&self, target: T) -> DispatchClass;
}
Expand description

Means of classifying a dispatchable function.

Required Methods§

source

fn classify_dispatch(&self, target: T) -> DispatchClass

Classify the dispatch function based on input data target of type T. When implementing this for a dispatchable, T will be a tuple of all arguments given to the function (except origin).

Implementations on Foreign Types§

source§

impl<T> ClassifyDispatch<T> for (u64, DispatchClass)

source§

impl<T> ClassifyDispatch<T> for (u64, DispatchClass, Pays)

source§

impl<T> ClassifyDispatch<T> for (u64, Pays)

source§

impl<T> ClassifyDispatch<T> for (Weight, DispatchClass)

source§

impl<T> ClassifyDispatch<T> for (Weight, DispatchClass, Pays)

source§

impl<T> ClassifyDispatch<T> for (Weight, Pays)

source§

impl<T> ClassifyDispatch<T> for u64

Implementors§