macro_rules! runtime_context {
    ($ctx:ident, $type:ty) => { ... };
}
Expand description

Extract custom runtime context from a dispatcher context.

§Examples

fn my_call(args: &bool, ctx: &mut TxnContext) -> Fallible<()> {
    let rctx = runtime_context!(ctx, MyContext);

    // ...
}