Struct bitcoinwallet_client::WalletClientImpl
source · pub struct WalletClientImpl { /* private fields */ }Expand description
Implementations§
source§impl WalletClientImpl
impl WalletClientImpl
pub fn new(chain: Amo<Box<dyn ChainInterface>>, args: &mut ArgsManager) -> Self
pub fn context(&mut self) -> *mut WalletContext
Trait Implementations§
source§impl CreateWallet for WalletClientImpl
impl CreateWallet for WalletClientImpl
source§fn create_wallet(
&mut self,
name: &String,
passphrase: &SecureString,
wallet_creation_flags: u64,
error: &mut BilingualStr,
warnings: &mut Vec<BilingualStr>
) -> Box<dyn WalletInterface>
fn create_wallet( &mut self, name: &String, passphrase: &SecureString, wallet_creation_flags: u64, error: &mut BilingualStr, warnings: &mut Vec<BilingualStr> ) -> Box<dyn WalletInterface>
| Create new wallet.
|
source§impl Drop for WalletClientImpl
impl Drop for WalletClientImpl
source§impl Flush for WalletClientImpl
impl Flush for WalletClientImpl
source§impl GetWalletContext for WalletClientImpl
impl GetWalletContext for WalletClientImpl
source§fn context(&mut self) -> *mut WalletContext
fn context(&mut self) -> *mut WalletContext
| Return pointer to internal context,
| useful for testing.
|
source§impl GetWalletDir for WalletClientImpl
impl GetWalletDir for WalletClientImpl
source§fn get_wallet_dir(&mut self) -> String
fn get_wallet_dir(&mut self) -> String
| Return default wallet directory.
|
source§impl GetWallets for WalletClientImpl
impl GetWallets for WalletClientImpl
source§fn get_wallets(&mut self) -> Vec<Box<dyn WalletInterface>>
fn get_wallets(&mut self) -> Vec<Box<dyn WalletInterface>>
| Return interfaces for accessing wallets
| (if any).
|
source§impl HandleLoadWallet for WalletClientImpl
impl HandleLoadWallet for WalletClientImpl
source§fn handle_load_wallet(&mut self, fn_: LoadWalletFn) -> Box<dyn Handler>
fn handle_load_wallet(&mut self, fn_: LoadWalletFn) -> Box<dyn Handler>
| Register handler for load wallet
| messages. This callback is triggered by
| createWallet and loadWallet above, and also
| triggered when wallets are loaded at
| startup or by RPC.
source§impl ListWalletDir for WalletClientImpl
impl ListWalletDir for WalletClientImpl
source§fn list_wallet_dir(&mut self) -> Vec<String>
fn list_wallet_dir(&mut self) -> Vec<String>
| Return available wallets in wallet
| directory.
|
source§impl RegisterRpcs for WalletClientImpl
impl RegisterRpcs for WalletClientImpl
source§fn register_rpcs(&mut self)
fn register_rpcs(&mut self)
| Register rpcs.
|
source§impl SetMockTime for WalletClientImpl
impl SetMockTime for WalletClientImpl
source§fn set_mock_time(&mut self, time: i64)
fn set_mock_time(&mut self, time: i64)
| Set mock time.
|
source§impl Start for WalletClientImpl
impl Start for WalletClientImpl
source§impl Verify for WalletClientImpl
impl Verify for WalletClientImpl
source§impl WalletClientLoadWallet for WalletClientImpl
impl WalletClientLoadWallet for WalletClientImpl
source§fn load_wallet(
&mut self,
name: &String,
error: &mut BilingualStr,
warnings: &mut Vec<BilingualStr>
) -> Box<dyn WalletInterface>
fn load_wallet( &mut self, name: &String, error: &mut BilingualStr, warnings: &mut Vec<BilingualStr> ) -> Box<dyn WalletInterface>
| Load existing wallet.
|
impl ChainClient for WalletClientImpl
impl WalletClient for WalletClientImpl
Auto Trait Implementations§
impl !RefUnwindSafe for WalletClientImpl
impl !Send for WalletClientImpl
impl !Sync for WalletClientImpl
impl Unpin for WalletClientImpl
impl !UnwindSafe for WalletClientImpl
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more