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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more