@@ -89,6 +89,8 @@ impl Writer for VecWriter {
89
89
90
90
/// Writer that only tracks the amount of data written - useful if you need to calculate the length
91
91
/// of some data when serialized but don't yet need the full data.
92
+ ///
93
+ /// (C-not exported) as manual TLV building is not currently supported in bindings
92
94
pub struct LengthCalculatingWriter ( pub usize ) ;
93
95
impl Writer for LengthCalculatingWriter {
94
96
#[ inline]
@@ -100,6 +102,8 @@ impl Writer for LengthCalculatingWriter {
100
102
101
103
/// Essentially [`std::io::Take`] but a bit simpler and with a method to walk the underlying stream
102
104
/// forward to ensure we always consume exactly the fixed length specified.
105
+ ///
106
+ /// (C-not exported) as manual TLV building is not currently supported in bindings
103
107
pub struct FixedLengthReader < R : Read > {
104
108
read : R ,
105
109
bytes_read : u64 ,
@@ -155,6 +159,8 @@ impl<R: Read> LengthRead for FixedLengthReader<R> {
155
159
156
160
/// A [`Read`] implementation which tracks whether any bytes have been read at all. This allows us to distinguish
157
161
/// between "EOF reached before we started" and "EOF reached mid-read".
162
+ ///
163
+ /// (C-not exported) as manual TLV building is not currently supported in bindings
158
164
pub struct ReadTrackingReader < R : Read > {
159
165
read : R ,
160
166
/// Returns whether we have read from this reader or not yet.
@@ -289,6 +295,8 @@ impl<T: Readable> MaybeReadable for T {
289
295
}
290
296
291
297
/// Wrapper to read a required (non-optional) TLV record.
298
+ ///
299
+ /// (C-not exported) as manual TLV building is not currently supported in bindings
292
300
pub struct RequiredWrapper < T > ( pub Option < T > ) ;
293
301
impl < T : Readable > Readable for RequiredWrapper < T > {
294
302
#[ inline]
@@ -311,6 +319,8 @@ impl<T> From<T> for RequiredWrapper<T> {
311
319
312
320
/// Wrapper to read a required (non-optional) TLV record that may have been upgraded without
313
321
/// backwards compat.
322
+ ///
323
+ /// (C-not exported) as manual TLV building is not currently supported in bindings
314
324
pub struct UpgradableRequired < T : MaybeReadable > ( pub Option < T > ) ;
315
325
impl < T : MaybeReadable > MaybeReadable for UpgradableRequired < T > {
316
326
#[ inline]
@@ -591,6 +601,8 @@ impl Readable for [u16; 8] {
591
601
592
602
/// A type for variable-length values within TLV record where the length is encoded as part of the record.
593
603
/// Used to prevent encoding the length twice.
604
+ ///
605
+ /// (C-not exported) as manual TLV building is not currently supported in bindings
594
606
pub struct WithoutLength < T > ( pub T ) ;
595
607
596
608
impl Writeable for WithoutLength < & String > {
0 commit comments