We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e81aca6 commit e9f02f2Copy full SHA for e9f02f2
lightning/src/util/ser.rs
@@ -361,8 +361,11 @@ where
361
fn read<R: LengthRead>(reader: &mut R, params: P) -> Result<Self, DecodeError>;
362
}
363
364
-/// A trait that various higher-level LDK types implement allowing them to be read in
365
-/// from a [`Read`], requiring the implementer to provide the total length of the read.
+/// A trait that various LDK types implement allowing them to be read in from a [`Read`], requiring
+/// the implementer to provide the total length of the read.
366
+///
367
+/// Any type that implements [`Readable`] also automatically has a [`LengthReadable`]
368
+/// implementation, but some types, most notably onion packets, only implement [`LengthReadable`].
369
pub trait LengthReadable
370
where
371
Self: Sized,
0 commit comments