pub struct HandshakePayload {
pub version: ProtocolVersion,
}Expand description
The field set of a Frame::Handshake payload.
Strict within a protocol version: deny_unknown_fields — a
payload carrying any field this struct does not declare is rejected at
decode (ADR-137’s closed grammar; see the crate documentation’s “Strict
field rejection” section).
Fields§
§version: ProtocolVersionThe protocol version the client wants to speak.
Trait Implementations§
Source§impl Clone for HandshakePayload
impl Clone for HandshakePayload
Source§impl Debug for HandshakePayload
impl Debug for HandshakePayload
Source§impl<'de> Deserialize<'de> for HandshakePayload
impl<'de> Deserialize<'de> for HandshakePayload
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
Source§impl PartialEq for HandshakePayload
impl PartialEq for HandshakePayload
Source§impl Serialize for HandshakePayload
impl Serialize for HandshakePayload
impl StructuralPartialEq for HandshakePayload
Auto Trait Implementations§
impl Freeze for HandshakePayload
impl RefUnwindSafe for HandshakePayload
impl Send for HandshakePayload
impl Sync for HandshakePayload
impl Unpin for HandshakePayload
impl UnsafeUnpin for HandshakePayload
impl UnwindSafe for HandshakePayload
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