Closed partim closed 3 months ago
This PR adds a new method Message<_>::for_slice_ref which converts the message to a Message<&[u8]>. This comes in handy when parsing the message content into type that don’t allow unsized octets sequences like AllRecordData<_, _>.
Message<_>::for_slice_ref
Message<&[u8]>
AllRecordData<_, _>
This PR adds a new method
Message<_>::for_slice_ref
which converts the message to aMessage<&[u8]>
. This comes in handy when parsing the message content into type that don’t allow unsized octets sequences likeAllRecordData<_, _>
.