Function iota_wallet::message_interface::listen
source · [−]pub async fn listen<F>(
handle: &WalletMessageHandler,
events: Vec<WalletEventType>,
handler: F
) where
F: Fn(&Event) + 'static + Clone + Send + Sync,
Expand description
Listen to wallet events, empty vec will listen to all events