pub enum ControlMessage {
ClientHello {
eph_public: [u8; 32],
session_salt: [u8; 32],
transcript_binding: [u8; 32],
auth: Option<HandshakeAuth>,
},
ServerHello {
eph_public: [u8; 32],
transcript_binding: [u8; 32],
auth: Option<HandshakeAuth>,
},
Rekey {
old_key_id: u8,
new_key_id: u8,
rekey_salt: [u8; 32],
transcript_binding: [u8; 32],
},
Error {
code: u16,
},
}Expand description
Control payload schema transported in encrypted control frames.
Variants§
ClientHello
First handshake message from initiator.
Fields
§
auth: Option<HandshakeAuth>Optional identity authentication for the handshake transcript.
ServerHello
Handshake response from responder.
Fields
§
auth: Option<HandshakeAuth>Optional identity authentication for the handshake transcript.
Rekey
Rekey event message.
Fields
Error
Generic control error code.
Implementations§
Trait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
Source§fn clone(&self) -> ControlMessage
fn clone(&self) -> ControlMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlMessage
impl Debug for ControlMessage
Source§impl PartialEq for ControlMessage
impl PartialEq for ControlMessage
impl Eq for ControlMessage
impl StructuralPartialEq for ControlMessage
Auto Trait Implementations§
impl Freeze for ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnsafeUnpin for ControlMessage
impl UnwindSafe for ControlMessage
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