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]
Trait Implementations
impl<'a> Debug for BorrowMessage<'a>[src]
impl<'a> Debug for BorrowMessage<'a>Auto Trait Implementations
impl<'a> Send for BorrowMessage<'a>
impl<'a> Send for BorrowMessage<'a>impl<'a> Sync for BorrowMessage<'a>
impl<'a> Sync for BorrowMessage<'a>