pub fn new_call_context(&mut self, call_origin: CallOrigin, cycles: Cycles) -> CallContextId {
        self.next_call_context_id += 1;
        let id = CallContextId::from(self.next_call_context_id);
        self.call_contexts.insert(
            id,
            CallContext {
                call_origin,
                responded: false,
                deleted: false,
                available_cycles: cycles,
            },
        );
        id
    }
/// Must be used to create a new call context at the beginning of every new
/// ingress or inter-canister message.
Must be used to create a new call context at the beginning of every new
ingress or inter-canister message.
Must be used to create a new call context at the beginning of every new ingress or inter - canister message .
pub fn new_call_context(&mut self, call_origin: CallOrigin, cycles: Cycles) -> CallContextId {
        self.next_call_context_id += 1;
        let id = CallContextId::from(self.next_call_context_id);
        self.call_contexts.insert(
            id,
            CallContext {
                call_origin,
                responded: false,
                deleted: false,
                available_cycles: cycles,
            },
        );
        id
    }
pub fn new_call_context ( & mut self , call_origin : CallOrigin , cycles : Cycles ) -> CallContextId { self . next_call_context_id += 1 ; let id = CallContextId :: from ( self . next_call_context_id ) ; self . call_contexts . insert ( id , CallContext { call_origin , responded : false , deleted : false , available_cycles : cycles , } , ) ; id }
Must be used to create a new call context at the beginning of every new
ingress or inter-canister message.
Must be used to create a new call context at the beginning of every new ingress or inter - canister message .
&mut self
call_origin
CallOrigin
cycles
Cycles
&mut self
call_origin
CallOrigin
cycles
Cycles