Skip to main content

encode_call_optimized_with_id

Function encode_call_optimized_with_id 

Source
pub fn encode_call_optimized_with_id<T, R>(
    interface_id: InterfaceId,
    entry_id: u16,
    route_idx: u8,
    value: &T::Params,
    f: impl FnOnce(&[u8]) -> R,
) -> R
where T: ServiceCall<Route = RouteIdx>, T::Params: Encode,