Trait frame_support::weights::ClassifyDispatch [−][src]
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
[src]
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
impl<T> ClassifyDispatch<T> for (Weight, DispatchClass, Pays)
[src]
impl<T> ClassifyDispatch<T> for (Weight, DispatchClass, Pays)
[src]fn classify_dispatch(&self, _: T) -> DispatchClass
[src]
impl<T> ClassifyDispatch<T> for (Weight, DispatchClass)
[src]
impl<T> ClassifyDispatch<T> for (Weight, DispatchClass)
[src]fn classify_dispatch(&self, _: T) -> DispatchClass
[src]
impl<T> ClassifyDispatch<T> for (Weight, Pays)
[src]
impl<T> ClassifyDispatch<T> for (Weight, Pays)
[src]fn classify_dispatch(&self, _: T) -> DispatchClass
[src]
Implementors
impl<Args, WD, CD, PF> ClassifyDispatch<Args> for FunctionOf<WD, CD, PF> where
CD: Fn(Args) -> DispatchClass,
[src]
impl<Args, WD, CD, PF> ClassifyDispatch<Args> for FunctionOf<WD, CD, PF> where
CD: Fn(Args) -> DispatchClass,
[src]fn classify_dispatch(&self, args: Args) -> DispatchClass
[src]
impl<Args, WD, PF> ClassifyDispatch<Args> for FunctionOf<WD, DispatchClass, PF>
[src]
impl<Args, WD, PF> ClassifyDispatch<Args> for FunctionOf<WD, DispatchClass, PF>
[src]fn classify_dispatch(&self, _: Args) -> DispatchClass
[src]
impl<T> ClassifyDispatch<T> for Weight
[src]
impl<T> ClassifyDispatch<T> for Weight
[src]