Struct rustls::internal::msgs::message::BorrowMessage [−][src]
pub struct BorrowMessage<'a> { pub typ: ContentType, pub version: ProtocolVersion, pub payload: &'a [u8], }
A TLS frame, named TLSPlaintext in the standard.
This type differs from Message
because it borrows
its payload. You can make a Message
from an
BorrowMessage
, but this involves a copy.
This type also cannot decode its internals and
is not a Codec
type, only Message
can do that.
Fields
typ: ContentType
version: ProtocolVersion
payload: &'a [u8]