pub(crate) enum Encoding {
Standard,
EchConfirmation,
EchInnerHello {
to_compress: Vec<ExtensionType>,
},
}
Expand description
The method of encoding to use for a handshake message.
In some cases a handshake message may be encoded differently depending on the purpose the encoded message is being used for. For example, a ServerHelloPayload may be encoded with the last 8 bytes of the random zeroed out when being encoded for ECH confirmation.
Variants§
Standard
Standard RFC 8446 encoding.
EchConfirmation
Encoding for ECH confirmation.
EchInnerHello
Encoding for ECH inner client hello.
Fields
§
to_compress: Vec<ExtensionType>
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
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