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: ContentTypeversion: ProtocolVersionpayload: &'a [u8]

Auto Trait Implementations

impl<'a> RefUnwindSafe for BorrowMessage<'a>

impl<'a> Send for BorrowMessage<'a>

impl<'a> Sync for BorrowMessage<'a>

impl<'a> Unpin for BorrowMessage<'a>

impl<'a> UnwindSafe for BorrowMessage<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.