Skip to content

Commit 27c05fd

Browse files
committed
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.
1 parent 8cc9410 commit 27c05fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/util/events.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,9 @@ pub trait MessageSendEventsProvider {
395395
/// may safely use the provider (e.g., see [`ChannelManager::process_pending_events`] and
396396
/// [`ChainMonitor::process_pending_events`]).
397397
///
398+
/// (C-not implementable) As there is likely no reason for a user to implement this trait on their
399+
/// own type(s).
400+
///
398401
/// [`process_pending_events`]: Self::process_pending_events
399402
/// [`handle_event`]: EventHandler::handle_event
400403
/// [`ChannelManager::process_pending_events`]: crate::ln::channelmanager::ChannelManager#method.process_pending_events

0 commit comments

Comments
 (0)