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]
Auto Trait Implementations
impl<'a> RefUnwindSafe for BorrowedPlainMessage<'a>
impl<'a> Send for BorrowedPlainMessage<'a>
impl<'a> Sync for BorrowedPlainMessage<'a>
impl<'a> Unpin for BorrowedPlainMessage<'a>
impl<'a> UnwindSafe for BorrowedPlainMessage<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more