pub fn register_method_timeout(payment_method: &str,
                                   create_payment_address: Option<payments::CreatePaymentAddressCB>,
                                   add_request_fees: Option<payments::AddRequestFeesCB>,
                                   parse_response_with_fees: Option<payments::ParseResponseWithFeesCB>,
                                   build_get_payment_sources_request: Option<payments::BuildGetPaymentSourcesRequestCB>,
                                   parse_get_payment_sources_response: Option<payments::ParseGetPaymentSourcesResponseCB>,
                                   build_payment_req: Option<payments::BuildPaymentReqCB>,
                                   parse_payment_response: Option<payments::ParsePaymentResponseCB>,
                                   build_mint_req: Option<payments::BuildMintReqCB>,
                                   build_set_txn_fees_req: Option<payments::BuildSetTxnFeesReqCB>,
                                   build_get_txn_fees_req: Option<payments::BuildGetTxnFeesReqCB>,
                                   parse_get_txn_fees_response: Option<payments::ParseGetTxnFeesResponseCB>,
                                   build_verify_payment_req: Option<payments::BuildVerifyPaymentReqCB>,
                                   parse_verify_payment_response: Option<payments::ParseVerifyPaymentResponseCB>,
                                   timeout: Duration) -> Result<(), ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec();

        let err = Payment::_register_method(command_handle,
                                                      payment_method,
                                                      create_payment_address,
                                                      add_request_fees,
                                                      parse_response_with_fees,
                                                      build_get_payment_sources_request,
                                                      parse_get_payment_sources_response,
                                                      build_payment_req,
                                                      parse_payment_response,
                                                      build_mint_req,
                                                      build_set_txn_fees_req,
                                                      build_get_txn_fees_req,
                                                      parse_get_txn_fees_response,
                                                      build_verify_payment_req,
                                                      parse_verify_payment_response,
                                                      cb);

        ResultHandler::empty_timeout(err, receiver, timeout)
    }
/// * `timeout` - the maximum time this function waits for a response
`timeout` - the maximum time this function waits for a response
` timeout ` - the maximum time this function waits for a response
pub fn register_method_timeout(payment_method: &str,
                                   create_payment_address: Option<payments::CreatePaymentAddressCB>,
                                   add_request_fees: Option<payments::AddRequestFeesCB>,
                                   parse_response_with_fees: Option<payments::ParseResponseWithFeesCB>,
                                   build_get_payment_sources_request: Option<payments::BuildGetPaymentSourcesRequestCB>,
                                   parse_get_payment_sources_response: Option<payments::ParseGetPaymentSourcesResponseCB>,
                                   build_payment_req: Option<payments::BuildPaymentReqCB>,
                                   parse_payment_response: Option<payments::ParsePaymentResponseCB>,
                                   build_mint_req: Option<payments::BuildMintReqCB>,
                                   build_set_txn_fees_req: Option<payments::BuildSetTxnFeesReqCB>,
                                   build_get_txn_fees_req: Option<payments::BuildGetTxnFeesReqCB>,
                                   parse_get_txn_fees_response: Option<payments::ParseGetTxnFeesResponseCB>,
                                   build_verify_payment_req: Option<payments::BuildVerifyPaymentReqCB>,
                                   parse_verify_payment_response: Option<payments::ParseVerifyPaymentResponseCB>,
                                   timeout: Duration) -> Result<(), ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec();
        let err = Payment::_register_method(command_handle,
                                                      payment_method,
                                                      create_payment_address,
                                                      add_request_fees,
                                                      parse_response_with_fees,
                                                      build_get_payment_sources_request,
                                                      parse_get_payment_sources_response,
                                                      build_payment_req,
                                                      parse_payment_response,
                                                      build_mint_req,
                                                      build_set_txn_fees_req,
                                                      build_get_txn_fees_req,
                                                      parse_get_txn_fees_response,
                                                      build_verify_payment_req,
                                                      parse_verify_payment_response,
                                                      cb);
        ResultHandler::empty_timeout(err, receiver, timeout)
    }
pub fn register_method_timeout ( payment_method : & str , create_payment_address : Option < payments :: CreatePaymentAddressCB > , add_request_fees : Option < payments :: AddRequestFeesCB > , parse_response_with_fees : Option < payments :: ParseResponseWithFeesCB > , build_get_payment_sources_request : Option < payments :: BuildGetPaymentSourcesRequestCB > , parse_get_payment_sources_response : Option < payments :: ParseGetPaymentSourcesResponseCB > , build_payment_req : Option < payments :: BuildPaymentReqCB > , parse_payment_response : Option < payments :: ParsePaymentResponseCB > , build_mint_req : Option < payments :: BuildMintReqCB > , build_set_txn_fees_req : Option < payments :: BuildSetTxnFeesReqCB > , build_get_txn_fees_req : Option < payments :: BuildGetTxnFeesReqCB > , parse_get_txn_fees_response : Option < payments :: ParseGetTxnFeesResponseCB > , build_verify_payment_req : Option < payments :: BuildVerifyPaymentReqCB > , parse_verify_payment_response : Option < payments :: ParseVerifyPaymentResponseCB > , timeout : Duration ) -> Result < ( ) , ErrorCode > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec ( ) ; let err = Payment :: _register_method ( command_handle , payment_method , create_payment_address , add_request_fees , parse_response_with_fees , build_get_payment_sources_request , parse_get_payment_sources_response , build_payment_req , parse_payment_response , build_mint_req , build_set_txn_fees_req , build_get_txn_fees_req , parse_get_txn_fees_response , build_verify_payment_req , parse_verify_payment_response , cb ) ; ResultHandler :: empty_timeout ( err , receiver , timeout ) }
`timeout` - the maximum time this function waits for a response
` timeout ` - the maximum time this function waits for a response
payment_method
&str
create_payment_address
Option<payments::CreatePaymentAddressCB>
add_request_fees
Option<payments::AddRequestFeesCB>
parse_response_with_fees
Option<payments::ParseResponseWithFeesCB>
build_get_payment_sources_request
Option<payments::BuildGetPaymentSourcesRequestCB>
parse_get_payment_sources_response
Option<payments::ParseGetPaymentSourcesResponseCB>
build_payment_req
Option<payments::BuildPaymentReqCB>
parse_payment_response
Option<payments::ParsePaymentResponseCB>
build_mint_req
Option<payments::BuildMintReqCB>
build_set_txn_fees_req
Option<payments::BuildSetTxnFeesReqCB>
build_get_txn_fees_req
Option<payments::BuildGetTxnFeesReqCB>
parse_get_txn_fees_response
Option<payments::ParseGetTxnFeesResponseCB>
build_verify_payment_req
Option<payments::BuildVerifyPaymentReqCB>
parse_verify_payment_response
Option<payments::ParseVerifyPaymentResponseCB>
timeout
Duration