pub fn register_execution<F>(
        &self,
        system_state_accessor: SystemStateAccessorDirect,
        completion: F,
    ) -> ExecId
    where
        F: FnOnce(ExecId, SandboxExecOutput) + Send + Sync + 'static,
    {
        let exec_id = ExecId::new();
        let completion = Box::new(completion);
        let state = ActiveExecutionState {
            system_state_accessor: Some(system_state_accessor),
            completion: Some(Box::new(completion)),
        };
        let mut mut_states = self.states.lock().unwrap();
        mut_states.insert(exec_id, state);
        exec_id
    }
/// Registers an execution, allocates a unique ID for it, and
/// registers system state accessor + completion closure for it.
///
/// Returns the id to be used to refer to the execution. The
/// returned id should generally be identical to the id_hint passed
/// in, except when there is a possible collision.
Registers an execution, allocates a unique ID for it, and
registers system state accessor + completion closure for it.

Returns the id to be used to refer to the execution. The
returned id should generally be identical to the id_hint passed
in, except when there is a possible collision.
Registers an execution allocates a unique ID for it and registers system state accessor + completion closure for it . Returns the id to be used to refer to the execution . The returned id should generally be identical to the id_hint passed in except when there is a possible collision .
pub fn register_execution<F>(
        &self,
        system_state_accessor: SystemStateAccessorDirect,
        completion: F,
    ) -> ExecId
    where
        F: FnOnce(ExecId, SandboxExecOutput) + Send + Sync + 'static,
    {
        let exec_id = ExecId::new();
        let completion = Box::new(completion);
        let state = ActiveExecutionState {
            system_state_accessor: Some(system_state_accessor),
            completion: Some(Box::new(completion)),
        };
        let mut mut_states = self.states.lock().unwrap();
        mut_states.insert(exec_id, state);
        exec_id
    }
pub fn register_execution < F > ( & self , system_state_accessor : SystemStateAccessorDirect , completion : F , ) -> ExecId where F : FnOnce ( ExecId , SandboxExecOutput ) + Send + Sync + ' static , { let exec_id = ExecId :: new ( ) ; let completion = Box :: new ( completion ) ; let state = ActiveExecutionState { system_state_accessor : Some ( system_state_accessor ) , completion : Some ( Box :: new ( completion ) ) , } ; let mut mut_states = self . states . lock ( ) . unwrap ( ) ; mut_states . insert ( exec_id , state ) ; exec_id }
Registers an execution, allocates a unique ID for it, and
registers system state accessor + completion closure for it.
Registers an execution allocates a unique ID for it and registers system state accessor + completion closure for it .
&self
system_state_accessor
SystemStateAccessorDirect
completion
F
&self
system_state_accessor
SystemStateAccessorDirect
completion
F