pub struct SessionHello {
pub v: u16,
pub cr: String,
}Expand description
Handshake frame (client → server).
Fields§
§v: u16Protocol version; must equal SESSION_PROTO_VERSION.
cr: String32-byte client random, hex.
Trait Implementations§
Source§impl Clone for SessionHello
impl Clone for SessionHello
Source§fn clone(&self) -> SessionHello
fn clone(&self) -> SessionHello
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionHello
impl Debug for SessionHello
Source§impl<'de> Deserialize<'de> for SessionHello
impl<'de> Deserialize<'de> for SessionHello
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 SessionHello
impl RefUnwindSafe for SessionHello
impl Send for SessionHello
impl Sync for SessionHello
impl Unpin for SessionHello
impl UnsafeUnpin for SessionHello
impl UnwindSafe for SessionHello
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