pub fn new<F>(tx: CtlSender, txn: Option<SrvTxn>, fun: F) -> Self
        where F: Fn(&ManagerState, &mut CtlRequest, ActionSender) -> NetResult<()> + Send + 'static
    {
        CtlCommand { fun: Box::new(fun),
                     req: CtlRequest::new(tx, txn), }
    }
/// Create a new CtlCommand from the given CtlSender, transaction, and closure to execute.
Create a new CtlCommand from the given CtlSender, transaction, and closure to execute.
Create a new CtlCommand from the given CtlSender transaction and closure to execute .
pub fn new<F>(tx: CtlSender, txn: Option<SrvTxn>, fun: F) -> Self
        where F: Fn(&ManagerState, &mut CtlRequest, ActionSender) -> NetResult<()> + Send + 'static
    {
        CtlCommand { fun: Box::new(fun),
                     req: CtlRequest::new(tx, txn), }
    }
pub fn new < F > ( tx : CtlSender , txn : Option < SrvTxn > , fun : F ) -> Self where F : Fn ( & ManagerState , & mut CtlRequest , ActionSender ) -> NetResult < ( ) > + Send + ' static { CtlCommand { fun : Box :: new ( fun ) , req : CtlRequest :: new ( tx , txn ) , } }
Create a new CtlCommand from the given CtlSender, transaction, and closure to execute.
Create a new CtlCommand from the given CtlSender transaction and closure to execute .
tx
CtlSender
txn
Option<SrvTxn>
fun
F
tx
CtlSender
txn
Option<SrvTxn>
fun
F