pub struct HandshakeParams {
pub protocol_version: u32,
pub client_name: Option<String>,
pub client_version: Option<String>,
}Expand description
Handshake request parameters.
The handshake must be the first request sent by a client to validate protocol compatibility.
Fields§
§protocol_version: u32Protocol version the client is using.
client_name: Option<String>Optional client name (e.g., “nautilus-js”).
client_version: Option<String>Optional client version (e.g., “0.1.0”).
Trait Implementations§
Source§impl Clone for HandshakeParams
impl Clone for HandshakeParams
Source§fn clone(&self) -> HandshakeParams
fn clone(&self) -> HandshakeParams
Returns a duplicate 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 HandshakeParams
impl Debug for HandshakeParams
Source§impl<'de> Deserialize<'de> for HandshakeParams
impl<'de> Deserialize<'de> for HandshakeParams
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 HandshakeParams
impl RefUnwindSafe for HandshakeParams
impl Send for HandshakeParams
impl Sync for HandshakeParams
impl Unpin for HandshakeParams
impl UnsafeUnpin for HandshakeParams
impl UnwindSafe for HandshakeParams
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