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.
Required Methods§
Sourcefn with_weight(self, actual_weight: Weight) -> DispatchErrorWithPostInfo
fn with_weight(self, actual_weight: Weight) -> DispatchErrorWithPostInfo
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".