pub struct InboundPlainMessage<'a> {
pub typ: ContentType,
pub version: ProtocolVersion,
pub payload: &'a [u8],
}
Expand description
A TLS frame, named TLSPlaintext
in the standard.
This inbound type borrows its decrypted payload from the original buffer. It results from decryption.
Fields§
§typ: ContentType
§version: ProtocolVersion
§payload: &'a [u8]
Implementations§
Source§impl InboundPlainMessage<'_>
impl InboundPlainMessage<'_>
Sourcepub(crate) fn is_valid_ccs(&self) -> bool
pub(crate) fn is_valid_ccs(&self) -> bool
Returns true if the payload is a CCS message.
We passthrough ChangeCipherSpec messages in the deframer without decrypting them. Note: this is prior to the record layer, so is unencrypted. See third paragraph of section 5 in RFC8446.
Trait Implementations§
Source§impl<'a> Debug for InboundPlainMessage<'a>
impl<'a> Debug for InboundPlainMessage<'a>
Source§impl<'a> TryFrom<InboundPlainMessage<'a>> for Message<'a>
Parses a plaintext message into a well-typed Message
.
impl<'a> TryFrom<InboundPlainMessage<'a>> for Message<'a>
Parses a plaintext message into a well-typed Message
.
A PlainMessage
must contain plaintext content. Encrypted content should be stored in an
InboundOpaqueMessage
and decrypted before being stored into a PlainMessage
.
Auto Trait Implementations§
impl<'a> Freeze for InboundPlainMessage<'a>
impl<'a> RefUnwindSafe for InboundPlainMessage<'a>
impl<'a> Send for InboundPlainMessage<'a>
impl<'a> Sync for InboundPlainMessage<'a>
impl<'a> Unpin for InboundPlainMessage<'a>
impl<'a> UnwindSafe for InboundPlainMessage<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more