[][src]Trait frame_support::weights::ClassifyDispatch

pub trait ClassifyDispatch<T> {
    fn classify_dispatch(&self, target: T) -> DispatchClass;
}

Means of classifying a dispatchable function.

Required methods

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).

Loading content...

Implementors

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

Loading content...