pub struct HelloPayload {
pub client_id: String,
pub supported_versions: Vec<u8>,
pub capabilities: HelloCapabilities,
pub client_connection_token: Option<[u8; 32]>,
}Expand description
HELLO (0x0001) — first client frame after connect.
Fields§
§client_id: String§supported_versions: Vec<u8>§capabilities: HelloCapabilities§client_connection_token: Option<[u8; 32]>Reserved for connection resumption; None encodes as CBOR null.
Trait Implementations§
Source§impl Clone for HelloPayload
impl Clone for HelloPayload
Source§impl Debug for HelloPayload
impl Debug for HelloPayload
Source§impl<'de> Deserialize<'de> for HelloPayload
impl<'de> Deserialize<'de> for HelloPayload
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 HelloPayload
Source§impl PartialEq for HelloPayload
impl PartialEq for HelloPayload
Source§impl Serialize for HelloPayload
impl Serialize for HelloPayload
impl StructuralPartialEq for HelloPayload
Auto Trait Implementations§
impl Freeze for HelloPayload
impl RefUnwindSafe for HelloPayload
impl Send for HelloPayload
impl Sync for HelloPayload
impl Unpin for HelloPayload
impl UnsafeUnpin for HelloPayload
impl UnwindSafe for HelloPayload
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