#[repr(u8)]pub enum SocketIOPacketType {
Connect = 0,
Disconnect = 1,
Event = 2,
Ack = 3,
ConnectError = 4,
BinaryEvent = 5,
BinaryAck = 6,
}Expand description
协议文档 https://github.com/socketio/socket.io-protocol/tree/main?tab=readme-ov-file#exchange-protocol
Variants§
Trait Implementations§
Source§impl Clone for SocketIOPacketType
impl Clone for SocketIOPacketType
Source§fn clone(&self) -> SocketIOPacketType
fn clone(&self) -> SocketIOPacketType
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 moreimpl Eq for SocketIOPacketType
Source§impl From<SocketIOPacketType> for u8
impl From<SocketIOPacketType> for u8
Source§fn from(enum_value: SocketIOPacketType) -> Self
fn from(enum_value: SocketIOPacketType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SocketIOPacketType
impl PartialEq for SocketIOPacketType
Source§fn eq(&self, other: &SocketIOPacketType) -> bool
fn eq(&self, other: &SocketIOPacketType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SocketIOPacketType
Source§impl TryFrom<u8> for SocketIOPacketType
impl TryFrom<u8> for SocketIOPacketType
Source§type Error = TryFromPrimitiveError<SocketIOPacketType>
type Error = TryFromPrimitiveError<SocketIOPacketType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SocketIOPacketType
impl TryFromPrimitive for SocketIOPacketType
const NAME: &'static str = "SocketIOPacketType"
type Primitive = u8
type Error = TryFromPrimitiveError<SocketIOPacketType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for SocketIOPacketType
impl RefUnwindSafe for SocketIOPacketType
impl Send for SocketIOPacketType
impl Sync for SocketIOPacketType
impl Unpin for SocketIOPacketType
impl UnsafeUnpin for SocketIOPacketType
impl UnwindSafe for SocketIOPacketType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.