pub struct Handshake {
pub msg_type: HandshakeType,
pub length: u32,
pub body: Vec<u8>,
}Expand description
Generic TLS Handshake message.
HandshakeType msg_type; // 1 byte
uint24 length; // 3 bytes
body[length]; // variableFields§
§msg_type: HandshakeTypeHandshake type (1 byte).
length: u32Length of the body (3 bytes, big-endian).
body: Vec<u8>Raw body bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handshake
impl RefUnwindSafe for Handshake
impl Send for Handshake
impl Sync for Handshake
impl Unpin for Handshake
impl UnsafeUnpin for Handshake
impl UnwindSafe for Handshake
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