Mark `AChannelManager` no-export
authorMatt Corallo <git@bluematt.me>
Mon, 25 Sep 2023 22:14:04 +0000 (22:14 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 1 Oct 2023 00:05:01 +0000 (00:05 +0000)
The trait itself has no purpose for bindings, as all structs are
concretized anyway. Further, the bindings have specific handling
for generic bounding traits like this.

lightning/src/ln/channelmanager.rs

index 3f6a2a6b20dfcc692df81fad93ac93c4d37a068e..8c9b8337e18c1b73778126a1c0a858276accd943 100644 (file)
@@ -840,6 +840,9 @@ pub type SimpleRefChannelManager<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, M, T, F, L> =
        >;
 
 /// A trivial trait which describes any [`ChannelManager`].
+///
+/// This is not exported to bindings users as general cover traits aren't useful in other
+/// languages.
 pub trait AChannelManager {
        /// A type implementing [`chain::Watch`].
        type Watch: chain::Watch<Self::Signer> + ?Sized;