pub enum MessagePayload {
Alert(AlertMessagePayload),
Handshake(HandshakeMessagePayload),
ChangeCipherSpec(ChangeCipherSpecPayload),
Opaque(Payload),
}
Variants§
Alert(AlertMessagePayload)
Handshake(HandshakeMessagePayload)
ChangeCipherSpec(ChangeCipherSpecPayload)
Opaque(Payload)
Implementations§
Source§impl MessagePayload
impl MessagePayload
pub fn encode(&self, bytes: &mut Vec<u8>)
pub fn decode_given_type( &self, typ: ContentType, vers: ProtocolVersion, ) -> Option<MessagePayload>
pub fn length(&self) -> usize
pub fn new_opaque(data: Vec<u8>) -> MessagePayload
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MessagePayload
impl RefUnwindSafe for MessagePayload
impl Send for MessagePayload
impl Sync for MessagePayload
impl Unpin for MessagePayload
impl UnwindSafe for MessagePayload
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