Enum rustls::internal::msgs::message::MessagePayload [−][src]
pub enum MessagePayload { Alert(AlertMessagePayload), Handshake(HandshakeMessagePayload), ChangeCipherSpec(ChangeCipherSpecPayload), Opaque(Payload), }
Variants
Alert(AlertMessagePayload)
Handshake(HandshakeMessagePayload)
ChangeCipherSpec(ChangeCipherSpecPayload)
Opaque(Payload)
Implementations
impl MessagePayload
[src]
impl MessagePayload
[src]pub fn encode(&self, bytes: &mut Vec<u8>)
[src]
pub fn decode_given_type(
&self,
typ: ContentType,
vers: ProtocolVersion
) -> Option<MessagePayload>
[src]
&self,
typ: ContentType,
vers: ProtocolVersion
) -> Option<MessagePayload>