pub enum MessagePayload {
Alert(AlertMessagePayload),
Handshake {
parsed: HandshakeMessagePayload,
encoded: Payload,
},
ChangeCipherSpec(ChangeCipherSpecPayload),
ApplicationData(Payload),
}
Variants
Alert(AlertMessagePayload)
Handshake
ChangeCipherSpec(ChangeCipherSpecPayload)
ApplicationData(Payload)
Implementations
sourceimpl MessagePayload
impl MessagePayload
pub fn encode(&self, bytes: &mut Vec<u8>)
pub fn handshake(parsed: HandshakeMessagePayload) -> Self
pub fn new(
typ: ContentType,
vers: ProtocolVersion,
payload: Payload
) -> Result<Self, InvalidMessage>
pub fn content_type(&self) -> ContentType
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more