pub enum Hello {
Incomplete,
ServerName(Option<String>),
Encrypted(Option<String>),
}Expand description
What the start of a tunnel says about the server it wants.
Variants§
Incomplete
More bytes are needed.
ServerName(Option<String>)
A complete ClientHello; None when it carries no SNI.
Encrypted(Option<String>)
A complete ClientHello that carries an encrypted server name (ECH or
ESNI), with its cleartext SNI. The name the server acts on may be another.
Trait Implementations§
impl Eq for Hello
impl StructuralPartialEq for Hello
Auto Trait Implementations§
impl Freeze for Hello
impl RefUnwindSafe for Hello
impl Send for Hello
impl Sync for Hello
impl Unpin for Hello
impl UnsafeUnpin for Hello
impl UnwindSafe for Hello
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