pub struct ClientHello {
pub build_stamp: String,
pub role: ClientRole,
pub client_nonce: [u8; 32],
pub compatibility: Option<ClientCompatibilityOffer>,
}Fields§
§build_stamp: String§role: ClientRole§client_nonce: [u8; 32]§compatibility: Option<ClientCompatibilityOffer>Implementations§
Source§impl ClientHello
impl ClientHello
pub fn new(role: ClientRole, client_nonce: [u8; 32]) -> Self
pub fn negotiating( role: ClientRole, client_nonce: [u8; 32], compatibility: ClientCompatibilityOffer, ) -> Self
Trait Implementations§
Source§impl Clone for ClientHello
impl Clone for ClientHello
Source§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
impl Eq for ClientHello
Source§impl PartialEq for ClientHello
impl PartialEq for ClientHello
Source§impl Serialize for ClientHello
impl Serialize for ClientHello
impl StructuralPartialEq for ClientHello
Auto Trait Implementations§
impl Freeze for ClientHello
impl RefUnwindSafe for ClientHello
impl Send for ClientHello
impl Sync for ClientHello
impl Unpin for ClientHello
impl UnsafeUnpin 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