ser: Add MaybeReadableArgs trait
authorValentine Wallace <vwallace@protonmail.com>
Mon, 17 Oct 2022 20:05:32 +0000 (16:05 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Mon, 17 Oct 2022 20:05:36 +0000 (16:05 -0400)
commita40e32b197895812e86eb479ff9e59c05875f871
tree7fbc636574a2dc26476cc0bbe64253723d147f46
parenta031ff952bee42aad38edd29ede6aaa05a4cb6cb
ser: Add MaybeReadableArgs trait

Useful in decoding a custom message, so (a) the message type can be provided to
the handler and (b) None can be returned if the message type is unknown.

Used in upcoming commit(s) to support custom onion messages.
lightning/src/util/ser.rs