#[repr(u8)]pub enum EngineIOPacketType {
Open = 0,
Close = 1,
Ping = 2,
Pong = 3,
Message = 4,
Upgrade = 5,
Noop = 6,
}Expand description
协议文档 https://github.com/socketio/engine.io-protocol/tree/main?tab=readme-ov-file#protocol
Variants§
Trait Implementations§
Source§impl Clone for EngineIOPacketType
impl Clone for EngineIOPacketType
Source§fn clone(&self) -> EngineIOPacketType
fn clone(&self) -> EngineIOPacketType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<EngineIOPacketType> for u8
impl From<EngineIOPacketType> for u8
Source§fn from(enum_value: EngineIOPacketType) -> Self
fn from(enum_value: EngineIOPacketType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EngineIOPacketType
impl PartialEq for EngineIOPacketType
Source§impl TryFrom<u8> for EngineIOPacketType
impl TryFrom<u8> for EngineIOPacketType
Source§type Error = TryFromPrimitiveError<EngineIOPacketType>
type Error = TryFromPrimitiveError<EngineIOPacketType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for EngineIOPacketType
impl TryFromPrimitive for EngineIOPacketType
const NAME: &'static str = "EngineIOPacketType"
type Primitive = u8
type Error = TryFromPrimitiveError<EngineIOPacketType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Eq for EngineIOPacketType
impl StructuralPartialEq for EngineIOPacketType
Auto Trait Implementations§
impl Freeze for EngineIOPacketType
impl RefUnwindSafe for EngineIOPacketType
impl Send for EngineIOPacketType
impl Sync for EngineIOPacketType
impl Unpin for EngineIOPacketType
impl UnwindSafe for EngineIOPacketType
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.