No-export `APeerManager` in bindings
authorMatt Corallo <git@bluematt.me>
Wed, 19 Jul 2023 20:01:32 +0000 (20:01 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 20 Jul 2023 21:43:52 +0000 (21:43 +0000)
`APeerManager` will simply be mapped as `PeerManager` in bindings,
as structs are all concretized into a single form.

lightning/src/ln/peer_handler.rs

index 60230af78eff6bf0ccf062a37a68926cdb96e926..1a39bbb3ae408e7047159e6d9f3f63267188b61f 100644 (file)
@@ -641,6 +641,9 @@ pub type SimpleRefPeerManager<
 /// A generic trait which is implemented for all [`PeerManager`]s. This makes bounding functions or
 /// structs on any [`PeerManager`] much simpler as only this trait is needed as a bound, rather
 /// than the full set of bounds on [`PeerManager`] itself.
+///
+/// This is not exported to bindings users as general cover traits aren't useful in other
+/// languages.
 #[allow(missing_docs)]
 pub trait APeerManager {
        type Descriptor: SocketDescriptor;