Struct tls_parser::tls::TlsMessageHeartbeat
[−]
[src]
pub struct TlsMessageHeartbeat<'a> {
pub heartbeat_type: u8,
pub payload_len: u16,
pub payload: &'a [u8],
}TLS heartbeat message, as defined in RFC6520
Heartbeat messages should not be sent during handshake, but in practise they can (and this caused heartbleed).
Fields
heartbeat_type: u8
payload_len: u16
payload: &'a [u8]
Trait Implementations
impl<'a> Clone for TlsMessageHeartbeat<'a>[src]
fn clone(&self) -> TlsMessageHeartbeat<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'a> Debug for TlsMessageHeartbeat<'a>[src]
impl<'a> PartialEq for TlsMessageHeartbeat<'a>[src]
fn eq(&self, __arg_0: &TlsMessageHeartbeat<'a>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TlsMessageHeartbeat<'a>) -> bool
This method tests for !=.