X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Fevents.rs;h=7ce738898759752f11bf96779d1648bf4446dad0;hb=4992955ad395b3276f5fe509dd2331218ad4534a;hp=013e3c4e611bbdfb130ca85094911499e65a6da5;hpb=7c465d69dcd81d540e6b21ceb46531f22e8414f0;p=rust-lightning diff --git a/lightning/src/util/events.rs b/lightning/src/util/events.rs index 013e3c4e6..7ce738898 100644 --- a/lightning/src/util/events.rs +++ b/lightning/src/util/events.rs @@ -23,8 +23,9 @@ use bitcoin::blockdata::script::Script; use bitcoin::secp256k1::key::PublicKey; +use prelude::*; use core::time::Duration; -use std::ops::Deref; +use core::ops::Deref; /// An Event which you should probably take some action in response to. /// @@ -394,6 +395,9 @@ pub trait MessageSendEventsProvider { /// may safely use the provider (e.g., see [`ChannelManager::process_pending_events`] and /// [`ChainMonitor::process_pending_events`]). /// +/// (C-not implementable) As there is likely no reason for a user to implement this trait on their +/// own type(s). +/// /// [`process_pending_events`]: Self::process_pending_events /// [`handle_event`]: EventHandler::handle_event /// [`ChannelManager::process_pending_events`]: crate::ln::channelmanager::ChannelManager#method.process_pending_events