pub fn register_activity<A, R>(
        &mut self,
        activity_type: impl Into<String>,
        act_function: impl IntoActivityFunc<A, R>,
    ) {
        self.activity_half.activity_fns.insert(
            activity_type.into(),
            ActivityFunction {
                act_func: act_function.into_activity_fn(),
            },
        );
    }
/// Register an Activity function to invoke when the Worker is asked to run an activity of
/// `activity_type`
Register an Activity function to invoke when the Worker is asked to run an activity of
`activity_type`
Register an Activity function to invoke when the Worker is asked to run an activity of ` activity_type `
pub fn register_activity<A, R>(
        &mut self,
        activity_type: impl Into<String>,
        act_function: impl IntoActivityFunc<A, R>,
    ) {
        self.activity_half.activity_fns.insert(
            activity_type.into(),
            ActivityFunction {
                act_func: act_function.into_activity_fn(),
            },
        );
    }
pub fn register_activity < A , R > ( & mut self , activity_type : impl Into < String > , act_function : impl IntoActivityFunc < A , R > , ) { self . activity_half . activity_fns . insert ( activity_type . into ( ) , ActivityFunction { act_func : act_function . into_activity_fn ( ) , } , ) ; }
Register an Activity function to invoke when the Worker is asked to run an activity of
`activity_type`
Register an Activity function to invoke when the Worker is asked to run an activity of ` activity_type `
&mut self
activity_type
impl Into<String>
act_function
impl IntoActivityFunc<A, R>
&mut self
activity_type
impl Into<String>
act_function
impl IntoActivityFunc<A, R>