pub struct OpenPacket {
pub sid: Sid,
pub upgrades: SmallVec<[TransportType; 1]>,
pub ping_interval: Duration,
pub ping_timeout: Duration,
pub max_payload: u64,
}Expand description
An OpenPacket is used to initiate a connection
Fields§
§sid: SidThe session ID.
upgrades: SmallVec<[TransportType; 1]>The list of available transport upgrades.
ping_interval: DurationThe ping interval, used in the heartbeat mechanism.
ping_timeout: DurationThe ping timeout, used in the heartbeat mechanism.
max_payload: u64The maximum number of bytes per chunk, used by the client to aggregate packets into payloads.
Trait Implementations§
Source§impl Clone for OpenPacket
impl Clone for OpenPacket
Source§fn clone(&self) -> OpenPacket
fn clone(&self) -> OpenPacket
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 OpenPacket
impl Debug for OpenPacket
Source§impl Default for OpenPacket
This default implementation should only be used for testing purposes.
impl Default for OpenPacket
This default implementation should only be used for testing purposes.
Source§impl<'de> Deserialize<'de> for OpenPacket
impl<'de> Deserialize<'de> for OpenPacket
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 OpenPacket
impl PartialEq for OpenPacket
Source§fn eq(&self, other: &OpenPacket) -> bool
fn eq(&self, other: &OpenPacket) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OpenPacket
impl Serialize for OpenPacket
impl StructuralPartialEq for OpenPacket
Auto Trait Implementations§
impl Freeze for OpenPacket
impl RefUnwindSafe for OpenPacket
impl Send for OpenPacket
impl Sync for OpenPacket
impl Unpin for OpenPacket
impl UnsafeUnpin for OpenPacket
impl UnwindSafe for OpenPacket
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