Struct rustls_fork_shadow_tls::internal::msgs::message::BorrowedPlainMessage
source · pub struct BorrowedPlainMessage<'a> {
pub typ: ContentType,
pub version: ProtocolVersion,
pub payload: &'a [u8],
}Expand description
A TLS frame, named TLSPlaintext in the standard.
This type differs from OpaqueMessage because it borrows
its payload. You can make a OpaqueMessage from an
BorrowMessage, but this involves a copy.
This type also cannot decode its internals and
cannot be read/encoded; only OpaqueMessage can do that.
Fields§
§typ: ContentType§version: ProtocolVersion§payload: &'a [u8]