mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 15:02:20 +01:00
Add new (C-not implementable)
tag on EventsProvider
This makes it so that users cannot usefully implement their own `EventsProvider`, which would require substantial new logic in the bindings generator (for generic methods). In the case of `EventsProvider`, because there are no Rust methods which accept an `EventsProvider` as an argument, this is perfectly OK as the generated code would be entirely unused anyway.
This commit is contained in:
parent
8cc9410ae1
commit
27c05fdd7f
1 changed files with 3 additions and 0 deletions
|
@ -395,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
|
||||
|
|
Loading…
Add table
Reference in a new issue