rustls::msgs::handshake

Macro wrapped_payload

Source
macro_rules! wrapped_payload {
    ($(#[$comment:meta])* $vis:vis struct $name:ident, $inner:ident,) => { ... };
}
Expand description

Create a newtype wrapper around a given type.

This is used to create newtypes for the various TLS message types which is used to wrap the PayloadU8 or PayloadU16 types. This is typically used for types where we don’t need anything other than access to the underlying bytes.