pub trait BatchCallUnpacker<Runtime: Config> {
// Required method
fn unpack(
call: &Runtime::RuntimeCall,
max_packed_calls: u32,
) -> Vec<&Runtime::RuntimeCall>;
}
Expand description
Something that can unpack batch calls (all-or-nothing flavor) of given size.
Required Methods§
Sourcefn unpack(
call: &Runtime::RuntimeCall,
max_packed_calls: u32,
) -> Vec<&Runtime::RuntimeCall>
fn unpack( call: &Runtime::RuntimeCall, max_packed_calls: u32, ) -> Vec<&Runtime::RuntimeCall>
Unpack batch call with no more than max_packed_calls
calls.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.