pub struct WalletProxy<C, K> where
C: NodeClient,
K: Keychain, {
pub chain_dir: String,
pub chain: Arc<Chain>,
pub wallets: HashMap<String, (Sender<WalletProxyMessage>, Arc<Mutex<dyn WalletInst<LocalWalletClient, K>>>)>,
pub tx: Sender<WalletProxyMessage>,
pub rx: Receiver<WalletProxyMessage>,
pub running: Arc<AtomicBool>,
// some fields omitted
}
communicates with a chain instance or other wallet
listener APIs via message queues
directory to create the chain in
list of interested wallets
simulate json send to another client
address, method, payload (simulate HTTP request)
Create a new client that will communicate with the given grin node
Add wallet with a given "address"
Run the incoming message queue and respond more or less
synchronously
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> UnsafeAny for T where T: Any, | |
impl<T> SafeBorrow for T where T: ?Sized, | |
Given ptr
, which was obtained from a prior call to Self::borrow()
, return a value with the same nominal lifetime which is guaranteed to survive mutations to Self
. Read more