pub enum ConnectKind {
Fresh,
Reconnect,
TakeOver,
}Expand description
How a WebSocket connection relates to an existing session of the player.
Variants§
Fresh
A first connection.
Reconnect
Re-establishing a dropped connection from the same tab.
TakeOver
Deliberately replacing a live connection from another tab.
Trait Implementations§
Source§impl Clone for ConnectKind
impl Clone for ConnectKind
impl Copy for ConnectKind
Source§impl Debug for ConnectKind
impl Debug for ConnectKind
Source§impl<'de> Deserialize<'de> for ConnectKind
impl<'de> Deserialize<'de> for ConnectKind
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 ConnectKind
Source§impl PartialEq for ConnectKind
impl PartialEq for ConnectKind
Source§impl Serialize for ConnectKind
impl Serialize for ConnectKind
impl StructuralPartialEq for ConnectKind
Auto Trait Implementations§
impl Freeze for ConnectKind
impl RefUnwindSafe for ConnectKind
impl Send for ConnectKind
impl Sync for ConnectKind
impl Unpin for ConnectKind
impl UnsafeUnpin for ConnectKind
impl UnwindSafe for ConnectKind
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