pub struct Hello {
pub protocol_version: u16,
pub features: Features,
pub agent: Option<String>,
}Expand description
Initial handshake message sent by both peers.
Each peer sends a Hello message after the QUIC connection is established. The messages are used to negotiate protocol version and features.
Fields§
§protocol_version: u16Protocol version supported by this peer.
features: FeaturesFeature flags supported by this peer.
agent: Option<String>Optional agent identifier (e.g., “quic-reverse/0.1.0”).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hello
impl<'de> Deserialize<'de> for Hello
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 Hello
impl StructuralPartialEq for Hello
Auto Trait Implementations§
impl Freeze for Hello
impl RefUnwindSafe for Hello
impl Send for Hello
impl Sync for Hello
impl Unpin for Hello
impl UnwindSafe for Hello
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