From: Matt Corallo Date: Wed, 19 Jul 2023 20:01:32 +0000 (+0000) Subject: No-export `APeerManager` in bindings X-Git-Tag: v0.0.116~3^2~6 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a8acbe710e4dbfddd8b12321ce3d5d722c199f90;p=rust-lightning No-export `APeerManager` in bindings `APeerManager` will simply be mapped as `PeerManager` in bindings, as structs are all concretized into a single form. --- diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index 60230af78..1a39bbb3a 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -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;