pub fn build_pool_upgrade_request_timeout(submitter_did: &str,
                                              name: &str,
                                              version: &str,
                                              action: &str,
                                              sha256: &str,
                                              upgrade_timeout: Option<u32>,
                                              schedule: Option<&str>,
                                              justification: Option<&str>,
                                              reinstall: bool,
                                              force: bool,
                                              package: Option<&str>,
                                              timeout: Duration) -> Result<String, ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();

        let err = Ledger::_build_pool_upgrade_request(command_handle, submitter_did, name, version, action, sha256, upgrade_timeout, schedule, justification, reinstall, force, package, cb);

        ResultHandler::one_timeout(err, receiver, timeout)
    }
/// Builds a POOL_UPGRADE request. Request to upgrade the Pool (sent by Trustee).
/// It upgrades the specified Nodes (either all nodes in the Pool, or some specific ones).
///
/// # Arguments
/// * `submitter_did` - DID of the submitter stored in secured Wallet.
/// * `name` - Human-readable name for the upgrade.
/// * `version` - The version of indy-node package we perform upgrade to.
///          Must be greater than existing one (or equal if reinstall flag is True).
/// * `action` - Either start or cancel.
/// * `sha256` - sha256 hash of the package.
/// * `upgrade_timeout` - (Optional) Limits upgrade time on each Node.
/// * `schedule` - (Optional) Schedule of when to perform upgrade on each node. Map Node DIDs to upgrade time.
/// * `justification` - (Optional) justification string for this particular Upgrade.
/// * `reinstall` - Whether it's allowed to re-install the same version. False by default.
/// * `force` - Whether we should apply transaction (schedule Upgrade) without waiting
///        for consensus of this transaction.
/// * `timeout` - the maximum time this function waits for a response
///
/// # Returns
/// Request result as json.
Builds a POOL_UPGRADE request. Request to upgrade the Pool (sent by Trustee).
It upgrades the specified Nodes (either all nodes in the Pool, or some specific ones).
Builds a POOL_UPGRADE request . Request to upgrade the Pool ( sent by Trustee ) . It upgrades the specified Nodes ( either all nodes in the Pool or some specific ones ) .
pub fn build_pool_upgrade_request_timeout(submitter_did: &str,
                                              name: &str,
                                              version: &str,
                                              action: &str,
                                              sha256: &str,
                                              upgrade_timeout: Option<u32>,
                                              schedule: Option<&str>,
                                              justification: Option<&str>,
                                              reinstall: bool,
                                              force: bool,
                                              package: Option<&str>,
                                              timeout: Duration) -> Result<String, ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();
        let err = Ledger::_build_pool_upgrade_request(command_handle, submitter_did, name, version, action, sha256, upgrade_timeout, schedule, justification, reinstall, force, package, cb);
        ResultHandler::one_timeout(err, receiver, timeout)
    }
pub fn build_pool_upgrade_request_timeout ( submitter_did : & str , name : & str , version : & str , action : & str , sha256 : & str , upgrade_timeout : Option < u32 > , schedule : Option < & str > , justification : Option < & str > , reinstall : bool , force : bool , package : Option < & str > , timeout : Duration ) -> Result < String , ErrorCode > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string ( ) ; let err = Ledger :: _build_pool_upgrade_request ( command_handle , submitter_did , name , version , action , sha256 , upgrade_timeout , schedule , justification , reinstall , force , package , cb ) ; ResultHandler :: one_timeout ( err , receiver , timeout ) }
Builds a POOL_UPGRADE request.
Builds a POOL_UPGRADE request .
Request result as json.
Request result as json .
submitter_did
&str
name
&str
version
&str
action
&str
sha256
&str
upgrade_timeout
Option<u32>
schedule
Option<&str>
justification
Option<&str>
reinstall
bool
force
bool
package
Option<&str>
timeout
Duration