pub fn build_pool_upgrade_request_async<F: 'static>(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>,
                                                        closure: F) -> ErrorCode where F: FnMut(ErrorCode, String) + Send {
        let (command_handle, cb) = ClosureHandler::convert_cb_ec_string(Box::new(closure));

        Ledger::_build_pool_upgrade_request(command_handle, submitter_did, name, version, action, sha256, upgrade_timeout, schedule, justification, reinstall, force, package, cb)
    }
/// 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.
/// * `closure` - the closure that is called when finished
///
/// # Returns
/// * `errorcode` - errorcode from calling ffi function. The closure receives the return result
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_async<F: 'static>(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>,
                                                        closure: F) -> ErrorCode where F: FnMut(ErrorCode, String) + Send {
        let (command_handle, cb) = ClosureHandler::convert_cb_ec_string(Box::new(closure));
        Ledger::_build_pool_upgrade_request(command_handle, submitter_did, name, version, action, sha256, upgrade_timeout, schedule, justification, reinstall, force, package, cb)
    }
pub fn build_pool_upgrade_request_async < F : ' static > ( 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 > , closure : F ) -> ErrorCode where F : FnMut ( ErrorCode , String ) + Send { let ( command_handle , cb ) = ClosureHandler :: convert_cb_ec_string ( Box :: new ( closure ) ) ; Ledger :: _build_pool_upgrade_request ( command_handle , submitter_did , name , version , action , sha256 , upgrade_timeout , schedule , justification , reinstall , force , package , cb ) }
Builds a POOL_UPGRADE request.
Builds a POOL_UPGRADE request .
`errorcode` - errorcode from calling ffi function. The closure receives the return result
` errorcode ` - errorcode from calling ffi function . The closure receives the return result
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>
closure
F