Skip to content

Commit 2223e92

Browse files
authored
Merge pull request #2110 from munjesi/docs_fixes
Replacing (C-not exported) in the docs
2 parents dbf3d57 + b0bf50f commit 2223e92

File tree

21 files changed

+88
-78
lines changed

21 files changed

+88
-78
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ where U::Target: UtxoLookup, L::Target: Logger {
164164
}
165165
}
166166

167-
/// (C-not exported) as the bindings concretize everything and have constructors for us
167+
/// This is not exported to bindings users as the bindings concretize everything and have constructors for us
168168
impl<P: Deref<Target = P2PGossipSync<G, U, L>>, G: Deref<Target = NetworkGraph<L>>, U: Deref, L: Deref>
169169
GossipSync<P, &RapidGossipSync<G, L>, G, U, L>
170170
where
@@ -177,7 +177,7 @@ where
177177
}
178178
}
179179

180-
/// (C-not exported) as the bindings concretize everything and have constructors for us
180+
/// This is not exported to bindings users as the bindings concretize everything and have constructors for us
181181
impl<'a, R: Deref<Target = RapidGossipSync<G, L>>, G: Deref<Target = NetworkGraph<L>>, L: Deref>
182182
GossipSync<
183183
&P2PGossipSync<G, &'a (dyn UtxoLookup + Send + Sync), L>,
@@ -195,7 +195,7 @@ where
195195
}
196196
}
197197

198-
/// (C-not exported) as the bindings concretize everything and have constructors for us
198+
/// This is not exported to bindings users as the bindings concretize everything and have constructors for us
199199
impl<'a, L: Deref>
200200
GossipSync<
201201
&P2PGossipSync<&'a NetworkGraph<L>, &'a (dyn UtxoLookup + Send + Sync), L>,

lightning-invoice/src/lib.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ pub const DEFAULT_MIN_FINAL_CLTV_EXPIRY_DELTA: u64 = 18;
216216
/// * `H`: exactly one `PaymentHash`
217217
/// * `T`: the timestamp is set
218218
///
219-
/// (C-not exported) as we likely need to manually select one set of boolean type parameters.
219+
/// This is not exported to bindings users as we likely need to manually select one set of boolean type parameters.
220220
#[derive(Eq, PartialEq, Debug, Clone)]
221221
pub struct InvoiceBuilder<D: tb::Bool, H: tb::Bool, T: tb::Bool, C: tb::Bool, S: tb::Bool> {
222222
currency: Currency,
@@ -247,7 +247,7 @@ pub struct Invoice {
247247
/// Represents the description of an invoice which has to be either a directly included string or
248248
/// a hash of a description provided out of band.
249249
///
250-
/// (C-not exported) As we don't have a good way to map the reference lifetimes making this
250+
/// This is not exported to bindings users as we don't have a good way to map the reference lifetimes making this
251251
/// practically impossible to use safely in languages like C.
252252
#[derive(Eq, PartialEq, Debug, Clone)]
253253
pub enum InvoiceDescription<'f> {
@@ -297,7 +297,7 @@ pub struct RawInvoice {
297297

298298
/// Data of the `RawInvoice` that is encoded in the human readable part
299299
///
300-
/// (C-not exported) As we don't yet support `Option<Enum>`
300+
/// This is not exported to bindings users as we don't yet support `Option<Enum>`
301301
#[derive(Eq, PartialEq, Debug, Clone, Hash)]
302302
pub struct RawHrp {
303303
/// The currency deferred from the 3rd and 4th character of the bech32 transaction
@@ -357,7 +357,7 @@ impl SiPrefix {
357357
/// Returns all enum variants of `SiPrefix` sorted in descending order of their associated
358358
/// multiplier.
359359
///
360-
/// (C-not exported) As we don't yet support a slice of enums, and also because this function
360+
/// This is not exported to bindings users as we don't yet support a slice of enums, and also because this function
361361
/// isn't the most critical to expose.
362362
pub fn values_desc() -> &'static [SiPrefix] {
363363
use crate::SiPrefix::*;
@@ -387,7 +387,7 @@ pub enum Currency {
387387

388388
/// Tagged field which may have an unknown tag
389389
///
390-
/// (C-not exported) as we don't currently support TaggedField
390+
/// This is not exported to bindings users as we don't currently support TaggedField
391391
#[derive(Clone, Debug, Hash, Eq, PartialEq)]
392392
pub enum RawTaggedField {
393393
/// Parsed tagged field with known tag
@@ -400,7 +400,7 @@ pub enum RawTaggedField {
400400
///
401401
/// For descriptions of the enum values please refer to the enclosed type's docs.
402402
///
403-
/// (C-not exported) As we don't yet support enum variants with the same name the struct contained
403+
/// This is not exported to bindings users as we don't yet support enum variants with the same name the struct contained
404404
/// in the variant.
405405
#[allow(missing_docs)]
406406
#[derive(Clone, Debug, Hash, Eq, PartialEq)]
@@ -419,7 +419,7 @@ pub enum TaggedField {
419419

420420
/// SHA-256 hash
421421
#[derive(Clone, Debug, Hash, Eq, PartialEq)]
422-
pub struct Sha256(/// (C-not exported) as the native hash types are not currently mapped
422+
pub struct Sha256(/// This is not exported to bindings users as the native hash types are not currently mapped
423423
pub sha256::Hash);
424424

425425
/// Description string
@@ -885,7 +885,7 @@ impl RawInvoice {
885885
/// of type `E`. Since the signature of a `SignedRawInvoice` is not required to be valid there
886886
/// are no constraints regarding the validity of the produced signature.
887887
///
888-
/// (C-not exported) As we don't currently support passing function pointers into methods
888+
/// This is not exported to bindings users as we don't currently support passing function pointers into methods
889889
/// explicitly.
890890
pub fn sign<F, E>(self, sign_method: F) -> Result<SignedRawInvoice, E>
891891
where F: FnOnce(&Message) -> Result<RecoverableSignature, E>
@@ -904,7 +904,7 @@ impl RawInvoice {
904904

905905
/// Returns an iterator over all tagged fields with known semantics.
906906
///
907-
/// (C-not exported) As there is not yet a manual mapping for a FilterMap
907+
/// This is not exported to bindings users as there is not yet a manual mapping for a FilterMap
908908
pub fn known_tagged_fields(&self)
909909
-> FilterMap<Iter<RawTaggedField>, fn(&RawTaggedField) -> Option<&TaggedField>>
910910
{
@@ -953,7 +953,7 @@ impl RawInvoice {
953953
find_extract!(self.known_tagged_fields(), TaggedField::Features(ref x), x)
954954
}
955955

956-
/// (C-not exported) as we don't support Vec<&NonOpaqueType>
956+
/// This is not exported to bindings users as we don't support Vec<&NonOpaqueType>
957957
pub fn fallbacks(&self) -> Vec<&Fallback> {
958958
find_all_extract!(self.known_tagged_fields(), TaggedField::Fallback(ref x), x).collect()
959959
}
@@ -1182,7 +1182,7 @@ impl Invoice {
11821182

11831183
/// Returns an iterator over all tagged fields of this Invoice.
11841184
///
1185-
/// (C-not exported) As there is not yet a manual mapping for a FilterMap
1185+
/// This is not exported to bindings users as there is not yet a manual mapping for a FilterMap
11861186
pub fn tagged_fields(&self)
11871187
-> FilterMap<Iter<RawTaggedField>, fn(&RawTaggedField) -> Option<&TaggedField>> {
11881188
self.signed_invoice.raw_invoice().known_tagged_fields()
@@ -1195,7 +1195,7 @@ impl Invoice {
11951195

11961196
/// Return the description or a hash of it for longer ones
11971197
///
1198-
/// (C-not exported) because we don't yet export InvoiceDescription
1198+
/// This is not exported to bindings users because we don't yet export InvoiceDescription
11991199
pub fn description(&self) -> InvoiceDescription {
12001200
if let Some(direct) = self.signed_invoice.description() {
12011201
return InvoiceDescription::Direct(direct);
@@ -1265,7 +1265,7 @@ impl Invoice {
12651265

12661266
/// Returns a list of all fallback addresses
12671267
///
1268-
/// (C-not exported) as we don't support Vec<&NonOpaqueType>
1268+
/// This is not exported to bindings users as we don't support Vec<&NonOpaqueType>
12691269
pub fn fallbacks(&self) -> Vec<&Fallback> {
12701270
self.signed_invoice.fallbacks()
12711271
}

lightning-invoice/src/ser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl Display for SignedRawInvoice {
124124
}
125125
}
126126

127-
/// (C-not exported)
127+
/// This is not exported to bindings users
128128
impl Display for RawHrp {
129129
fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> {
130130
let amount = match self.raw_amount {

lightning-rapid-gossip-sync/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl<NG: Deref<Target=NetworkGraph<L>>, L: Deref> RapidGossipSync<NG, L> where L
146146
/// Gets a reference to the underlying [`NetworkGraph`] which was provided in
147147
/// [`RapidGossipSync::new`].
148148
///
149-
/// (C-not exported) as bindings don't support a reference-to-a-reference yet
149+
/// This is not exported to bindings users as bindings don't support a reference-to-a-reference yet
150150
pub fn network_graph(&self) -> &NG {
151151
&self.network_graph
152152
}

lightning/src/chain/keysinterface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ use crate::util::invoice::construct_invoice_preimage;
5555
/// Used as initial key material, to be expanded into multiple secret keys (but not to be used
5656
/// directly). This is used within LDK to encrypt/decrypt inbound payment data.
5757
///
58-
/// (C-not exported) as we just use `[u8; 32]` directly
58+
/// This is not exported to bindings users as we just use `[u8; 32]` directly
5959
#[derive(Hash, Copy, Clone, PartialEq, Eq, Debug)]
6060
pub struct KeyMaterial(pub [u8; 32]);
6161

lightning/src/chain/transaction.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ impl OutPoint {
6666
}
6767

6868
/// Converts this OutPoint into the OutPoint field as used by rust-bitcoin
69-
/// (C-not exported) as the same type is used universally in the C bindings for all outpoints
69+
///
70+
/// This is not exported to bindings users as the same type is used universally in the C bindings
71+
/// for all outpoints
7072
pub fn into_bitcoin_outpoint(self) -> BitcoinOutPoint {
7173
BitcoinOutPoint {
7274
txid: self.txid,

lightning/src/ln/chan_utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ impl CommitmentTransaction {
12721272
///
12731273
/// Only include HTLCs that are above the dust limit for the channel.
12741274
///
1275-
/// (C-not exported) due to the generic though we likely should expose a version without
1275+
/// This is not exported to bindings users due to the generic though we likely should expose a version without
12761276
pub fn new_with_auxiliary_htlc_data<T>(commitment_number: u64, to_broadcaster_value_sat: u64, to_countersignatory_value_sat: u64, opt_anchors: bool, broadcaster_funding_key: PublicKey, countersignatory_funding_key: PublicKey, keys: TxCreationKeys, feerate_per_kw: u32, htlcs_with_aux: &mut Vec<(HTLCOutputInCommitment, T)>, channel_parameters: &DirectedChannelTransactionParameters) -> CommitmentTransaction {
12771277
// Sort outputs and populate output indices while keeping track of the auxiliary data
12781278
let (outputs, htlcs) = Self::internal_build_outputs(&keys, to_broadcaster_value_sat, to_countersignatory_value_sat, htlcs_with_aux, channel_parameters, opt_anchors, &broadcaster_funding_key, &countersignatory_funding_key).unwrap();
@@ -1298,7 +1298,7 @@ impl CommitmentTransaction {
12981298

12991299
/// Use non-zero fee anchors
13001300
///
1301-
/// (C-not exported) due to move, and also not likely to be useful for binding users
1301+
/// This is not exported to bindings users due to move, and also not likely to be useful for binding users
13021302
pub fn with_non_zero_fee_anchors(mut self) -> Self {
13031303
self.opt_non_zero_fee_anchors = Some(());
13041304
self
@@ -1479,7 +1479,7 @@ impl CommitmentTransaction {
14791479
/// which were included in this commitment transaction in output order.
14801480
/// The transaction index is always populated.
14811481
///
1482-
/// (C-not exported) as we cannot currently convert Vec references to/from C, though we should
1482+
/// This is not exported to bindings users as we cannot currently convert Vec references to/from C, though we should
14831483
/// expose a less effecient version which creates a Vec of references in the future.
14841484
pub fn htlcs(&self) -> &Vec<HTLCOutputInCommitment> {
14851485
&self.htlcs

lightning/src/ln/channelmanager.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ struct ClaimableHTLC {
199199
}
200200

201201
/// A payment identifier used to uniquely identify a payment to LDK.
202-
/// (C-not exported) as we just use [u8; 32] directly
202+
///
203+
/// This is not exported to bindings users as we just use [u8; 32] directly
203204
#[derive(Hash, Copy, Clone, PartialEq, Eq, Debug)]
204205
pub struct PaymentId(pub [u8; 32]);
205206

@@ -217,7 +218,8 @@ impl Readable for PaymentId {
217218
}
218219

219220
/// An identifier used to uniquely identify an intercepted HTLC to LDK.
220-
/// (C-not exported) as we just use [u8; 32] directly
221+
///
222+
/// This is not exported to bindings users as we just use [u8; 32] directly
221223
#[derive(Hash, Copy, Clone, PartialEq, Eq, Debug)]
222224
pub struct InterceptId(pub [u8; 32]);
223225

@@ -569,7 +571,7 @@ struct PendingInboundPayment {
569571
/// or, respectively, [`Router`] for its router, but this type alias chooses the concrete types
570572
/// of [`KeysManager`] and [`DefaultRouter`].
571573
///
572-
/// (C-not exported) as Arcs don't make sense in bindings
574+
/// This is not exported to bindings users as Arcs don't make sense in bindings
573575
pub type SimpleArcChannelManager<M, T, F, L> = ChannelManager<
574576
Arc<M>,
575577
Arc<T>,
@@ -595,7 +597,7 @@ pub type SimpleArcChannelManager<M, T, F, L> = ChannelManager<
595597
/// or, respectively, [`Router`] for its router, but this type alias chooses the concrete types
596598
/// of [`KeysManager`] and [`DefaultRouter`].
597599
///
598-
/// (C-not exported) as Arcs don't make sense in bindings
600+
/// This is not exported to bindings users as Arcs don't make sense in bindings
599601
pub type SimpleRefChannelManager<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, M, T, F, L> = ChannelManager<&'a M, &'b T, &'c KeysManager, &'c KeysManager, &'c KeysManager, &'d F, &'e DefaultRouter<&'f NetworkGraph<&'g L>, &'g L, &'h Mutex<ProbabilisticScorer<&'f NetworkGraph<&'g L>, &'g L>>>, &'g L>;
600602

601603
/// Manager which keeps track of a number of channels and sends messages to the appropriate
@@ -7236,7 +7238,7 @@ where
72367238
/// In such cases the latest local transactions will be sent to the tx_broadcaster included in
72377239
/// this struct.
72387240
///
7239-
/// (C-not exported) because we have no HashMap bindings
7241+
/// This is not exported to bindings users because we have no HashMap bindings
72407242
pub channel_monitors: HashMap<OutPoint, &'a mut ChannelMonitor<<SP::Target as SignerProvider>::Signer>>,
72417243
}
72427244

lightning/src/ln/features.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ mod sealed {
393393
/// Tracks the set of features which a node implements, templated by the context in which it
394394
/// appears.
395395
///
396-
/// (C-not exported) as we map the concrete feature types below directly instead
396+
/// This is not exported to bindings users as we map the concrete feature types below directly instead
397397
#[derive(Eq)]
398398
pub struct Features<T: sealed::Context> {
399399
/// Note that, for convenience, flags is LITTLE endian (despite being big-endian on the wire)
@@ -622,7 +622,8 @@ impl<T: sealed::Context> Features<T> {
622622

623623
/// Create a Features given a set of flags, in little-endian. This is in reverse byte order from
624624
/// most on-the-wire encodings.
625-
/// (C-not exported) as we don't support export across multiple T
625+
///
626+
/// This is not exported to bindings users as we don't support export across multiple T
626627
pub fn from_le_bytes(flags: Vec<u8>) -> Features<T> {
627628
Features {
628629
flags,

lightning/src/ln/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,18 @@ mod shutdown_tests;
7070
pub use self::peer_channel_encryptor::LN_MAX_MSG_LEN;
7171

7272
/// payment_hash type, use to cross-lock hop
73-
/// (C-not exported) as we just use [u8; 32] directly
73+
///
74+
/// This is not exported to bindings users as we just use [u8; 32] directly
7475
#[derive(Hash, Copy, Clone, PartialEq, Eq, Debug)]
7576
pub struct PaymentHash(pub [u8; 32]);
7677
/// payment_preimage type, use to route payment between hop
77-
/// (C-not exported) as we just use [u8; 32] directly
78+
///
79+
/// This is not exported to bindings users as we just use [u8; 32] directly
7880
#[derive(Hash, Copy, Clone, PartialEq, Eq, Debug)]
7981
pub struct PaymentPreimage(pub [u8; 32]);
8082
/// payment_secret type, use to authenticate sender to the receiver and tie MPP HTLCs together
81-
/// (C-not exported) as we just use [u8; 32] directly
83+
///
84+
/// This is not exported to bindings users as we just use [u8; 32] directly
8285
#[derive(Hash, Copy, Clone, PartialEq, Eq, Debug)]
8386
pub struct PaymentSecret(pub [u8; 32]);
8487

lightning/src/ln/msgs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ pub struct CommitmentUpdate {
939939
/// [`OptionalField`] simply gets `Present` if there are enough bytes to read into it), we have a
940940
/// separate enum type for them.
941941
///
942-
/// (C-not exported) due to a free generic in `T`
942+
/// This is not exported to bindings users due to a free generic in `T`
943943
#[derive(Clone, Debug, PartialEq, Eq)]
944944
pub enum OptionalField<T> {
945945
/// Optional field is included in message

lightning/src/ln/peer_handler.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ impl Peer {
522522
/// SimpleRefPeerManager is the more appropriate type. Defining these type aliases prevents
523523
/// issues such as overly long function definitions.
524524
///
525-
/// (C-not exported) as `Arc`s don't make sense in bindings.
525+
/// This is not exported to bindings users as `Arc`s don't make sense in bindings.
526526
pub type SimpleArcPeerManager<SD, M, T, F, C, L> = PeerManager<SD, Arc<SimpleArcChannelManager<M, T, F, L>>, Arc<P2PGossipSync<Arc<NetworkGraph<Arc<L>>>, Arc<C>, Arc<L>>>, Arc<SimpleArcOnionMessenger<L>>, Arc<L>, IgnoringMessageHandler, Arc<KeysManager>>;
527527

528528
/// SimpleRefPeerManager is a type alias for a PeerManager reference, and is the reference
@@ -532,7 +532,7 @@ pub type SimpleArcPeerManager<SD, M, T, F, C, L> = PeerManager<SD, Arc<SimpleArc
532532
/// But if this is not necessary, using a reference is more efficient. Defining these type aliases
533533
/// helps with issues such as long function definitions.
534534
///
535-
/// (C-not exported) as general type aliases don't make sense in bindings.
535+
/// This is not exported to bindings users as general type aliases don't make sense in bindings.
536536
pub type SimpleRefPeerManager<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, SD, M, T, F, C, L> = PeerManager<SD, SimpleRefChannelManager<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'm, M, T, F, L>, &'f P2PGossipSync<&'g NetworkGraph<&'f L>, &'h C, &'f L>, &'i SimpleRefOnionMessenger<'j, 'k, L>, &'f L, IgnoringMessageHandler, &'c KeysManager>;
537537

538538
/// A PeerManager manages a set of peers, described by their [`SocketDescriptor`] and marshalls
@@ -646,7 +646,7 @@ impl<Descriptor: SocketDescriptor, CM: Deref, OM: Deref, L: Deref, NS: Deref> Pe
646646
/// timestamp, however if it is not available a persistent counter that increases once per
647647
/// minute should suffice.
648648
///
649-
/// (C-not exported) as we can't export a PeerManager with a dummy route handler
649+
/// This is not exported to bindings users as we can't export a PeerManager with a dummy route handler
650650
pub fn new_channel_only(channel_message_handler: CM, onion_message_handler: OM, current_time: u32, ephemeral_random_data: &[u8; 32], logger: L, node_signer: NS) -> Self {
651651
Self::new(MessageHandler {
652652
chan_handler: channel_message_handler,
@@ -673,7 +673,7 @@ impl<Descriptor: SocketDescriptor, RM: Deref, L: Deref, NS: Deref> PeerManager<D
673673
/// `ephemeral_random_data` is used to derive per-connection ephemeral keys and must be
674674
/// cryptographically secure random bytes.
675675
///
676-
/// (C-not exported) as we can't export a PeerManager with a dummy channel handler
676+
/// This is not exported to bindings users as we can't export a PeerManager with a dummy channel handler
677677
pub fn new_routing_only(routing_message_handler: RM, current_time: u32, ephemeral_random_data: &[u8; 32], logger: L, node_signer: NS) -> Self {
678678
Self::new(MessageHandler {
679679
chan_handler: ErroringMessageHandler::new(),

lightning/src/onion_message/messenger.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,15 +463,15 @@ impl<ES: Deref, NS: Deref, L: Deref, CMH: Deref> OnionMessageProvider for OnionM
463463
/// Useful for simplifying the parameters of [`SimpleArcChannelManager`] and
464464
/// [`SimpleArcPeerManager`]. See their docs for more details.
465465
///
466-
/// (C-not exported) as `Arc`s don't make sense in bindings.
466+
/// This is not exported to bindings users as `Arc`s don't make sense in bindings.
467467
///
468468
/// [`SimpleArcChannelManager`]: crate::ln::channelmanager::SimpleArcChannelManager
469469
/// [`SimpleArcPeerManager`]: crate::ln::peer_handler::SimpleArcPeerManager
470470
pub type SimpleArcOnionMessenger<L> = OnionMessenger<Arc<KeysManager>, Arc<KeysManager>, Arc<L>, IgnoringMessageHandler>;
471471
/// Useful for simplifying the parameters of [`SimpleRefChannelManager`] and
472472
/// [`SimpleRefPeerManager`]. See their docs for more details.
473473
///
474-
/// (C-not exported) as general type aliases don't make sense in bindings.
474+
/// This is not exported to bindings users as general type aliases don't make sense in bindings.
475475
///
476476
/// [`SimpleRefChannelManager`]: crate::ln::channelmanager::SimpleRefChannelManager
477477
/// [`SimpleRefPeerManager`]: crate::ln::peer_handler::SimpleRefPeerManager

lightning/src/onion_message/packet.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ pub enum OnionMessageContents<T: CustomOnionMessageContents> {
119119
impl<T: CustomOnionMessageContents> OnionMessageContents<T> {
120120
/// Returns the type that was used to decode the message payload.
121121
///
122-
/// (C-not exported) as methods on non-cloneable enums are not currently exportable
122+
/// This is not exported to bindings users as methods on non-cloneable enums are not currently exportable
123123
pub fn tlv_type(&self) -> u64 {
124124
match self {
125125
&OnionMessageContents::Custom(ref msg) => msg.tlv_type(),
126126
}
127127
}
128128
}
129129

130-
/// (C-not exported) as methods on non-cloneable enums are not currently exportable
130+
/// This is not exported to bindings users as methods on non-cloneable enums are not currently exportable
131131
impl<T: CustomOnionMessageContents> Writeable for OnionMessageContents<T> {
132132
fn write<W: Writer>(&self, w: &mut W) -> Result<(), io::Error> {
133133
match self {

0 commit comments

Comments
 (0)