Trait frame_support::dispatch::WithPostDispatchInfo
source · pub trait WithPostDispatchInfo {
// Required method
fn with_weight(self, actual_weight: Weight) -> DispatchErrorWithPostInfo;
}
Expand description
Allows easy conversion from DispatchError
to DispatchErrorWithPostInfo
for dispatchables
that want to return a custom a posterior weight on error.