pub struct ClientHello {
pub sub_domain: Option<String>,
pub client_type: ClientType,
pub reconnect_token: Option<ReconnectToken>,
/* private fields */
}
Fields§
§sub_domain: Option<String>
§client_type: ClientType
§reconnect_token: Option<ReconnectToken>
Implementations§
Source§impl ClientHello
impl ClientHello
pub fn get_version(&self) -> ProtocolVersion
pub fn generate(sub_domain: Option<String>, typ: ClientType) -> Self
pub fn reconnect(reconnect_token: ReconnectToken) -> Self
Trait Implementations§
Source§impl Clone for ClientHello
impl Clone for ClientHello
Source§fn clone(&self) -> ClientHello
fn clone(&self) -> ClientHello
Returns a copy 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 ClientHello
impl Debug for ClientHello
Source§impl<'de> Deserialize<'de> for ClientHello
impl<'de> Deserialize<'de> for ClientHello
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClientHello
impl RefUnwindSafe for ClientHello
impl Send for ClientHello
impl Sync for ClientHello
impl Unpin for ClientHello
impl UnwindSafe for ClientHello
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