Skip to main content

WalletExt

Trait WalletExt 

Source
pub trait WalletExt {
    // Required methods
    fn act_wallet_get(
        &self,
        sk: &SecretKey,
    ) -> impl Future<Output = Result<Option<Wallet>, String>> + Send;
    fn act_wallet_save(
        &mut self,
        wallet: &Wallet,
        sk: &SecretKey,
        payment: &PaymentOption,
    ) -> impl Future<Output = Result<PublicKey, String>> + Send;
}

Required Methods§

Source

fn act_wallet_get( &self, sk: &SecretKey, ) -> impl Future<Output = Result<Option<Wallet>, String>> + Send

Source

fn act_wallet_save( &mut self, wallet: &Wallet, sk: &SecretKey, payment: &PaymentOption, ) -> impl Future<Output = Result<PublicKey, String>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl WalletExt for Client

Source§

async fn act_wallet_get(&self, sk: &SecretKey) -> Result<Option<Wallet>, String>

Source§

async fn act_wallet_save( &mut self, wallet: &Wallet, sk: &SecretKey, payment: &PaymentOption, ) -> Result<PublicKey, String>

Implementors§