referrerpolicy=no-referrer-when-downgrade
bp_relayers

Trait BatchCallUnpacker

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl<Runtime: Config> BatchCallUnpacker<Runtime> for ()

Source§

fn unpack( call: &Runtime::RuntimeCall, _max_packed_calls: u32, ) -> Vec<&Runtime::RuntimeCall>

Implementors§

Source§

impl<Runtime> BatchCallUnpacker<Runtime> for RuntimeWithUtilityPallet<Runtime>
where Runtime: Config<RuntimeCall = <Runtime as SystemConfig>::RuntimeCall>, <Runtime as SystemConfig>::RuntimeCall: IsSubType<CallableCallFor<Pallet<Runtime>, Runtime>>,