pub enum MessagePayload {
Alert(AlertMessagePayload),
Handshake(HandshakeMessagePayload),
ChangeCipherSpec(ChangeCipherSpecPayload),
Opaque(Payload),
}
Variants
Alert(AlertMessagePayload)
Handshake(HandshakeMessagePayload)
ChangeCipherSpec(ChangeCipherSpecPayload)
Opaque(Payload)
Implementations
sourceimpl 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
sourceimpl Debug for MessagePayload
impl Debug for MessagePayload
Auto Trait Implementations
impl RefUnwindSafe for MessagePayload
impl Send for MessagePayload
impl Sync for MessagePayload
impl Unpin for MessagePayload
impl UnwindSafe for MessagePayload
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more