pub trait SlateReceiver {
    // Required method
    fn listen<L, C, K>(
        &self,
        wallet: Arc<Mutex<Box<dyn WalletInst<'static, L, C, K> + 'static>>>,
        keychain_mask: Arc<Mutex<Option<SecretKey>>>,
        config: WalletConfig
    ) -> Result<(), Error>
       where L: WalletLCProvider<'static, C, K> + 'static,
             C: NodeClient + 'static,
             K: Keychain + 'static;
}

Required Methods§

source

fn listen<L, C, K>( &self, wallet: Arc<Mutex<Box<dyn WalletInst<'static, L, C, K> + 'static>>>, keychain_mask: Arc<Mutex<Option<SecretKey>>>, config: WalletConfig ) -> Result<(), Error>
where L: WalletLCProvider<'static, C, K> + 'static, C: NodeClient + 'static, K: Keychain + 'static,

Start a listener, passing received messages to the wallet api directly Takes a wallet config for now to avoid needing all sorts of awkward type parameters on this trait

Object Safety§

This trait is not object safe.

Implementors§