Struct rustls::internal::msgs::message::Message [] [src]

pub struct Message {
    pub typ: ContentType,
    pub version: ProtocolVersion,
    pub payload: MessagePayload,
}

A TLS frame, named TLSPlaintext in the standard. This type owns all memory for its interior parts.

Fields

Methods

impl Message
[src]

Do some very lax checks on the header, and return None if it looks really broken. Otherwise, return the length field.

impl<'a> Message
[src]

Trait Implementations

impl Debug for Message
[src]

Formats the value using the given formatter.

impl Codec for Message
[src]

Decode yourself by fiddling with the Reader. Return Some if it worked, None if not. Read more

Encode yourself by appending onto bytes.

Convenience function to get the results of encode().

Read one of these from the front of bytes and return it. Read more