pub enum PacketType {
Unknown = 0,
OpenSession = 1,
CloseSession = 2,
InvokeCommand = 3,
RequestCancellation = 4,
}Expand description
数据包类型枚举,定义协议支持的不同操作类型
Variants§
Trait Implementations§
Source§impl Debug for PacketType
impl Debug for PacketType
Source§impl Default for PacketType
impl Default for PacketType
Source§fn default() -> PacketType
fn default() -> PacketType
Returns the “default value” for a type. Read more
Source§impl From<PacketType> for u64
impl From<PacketType> for u64
Source§fn from(value: PacketType) -> Self
fn from(value: PacketType) -> Self
Converts to this type from the input type.
Source§impl From<u64> for PacketType
impl From<u64> for PacketType
Source§impl PartialEq for PacketType
impl PartialEq for PacketType
Source§fn eq(&self, other: &PacketType) -> bool
fn eq(&self, other: &PacketType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PacketType
impl StructuralPartialEq for PacketType
Auto Trait Implementations§
impl Freeze for PacketType
impl RefUnwindSafe for PacketType
impl Send for PacketType
impl Sync for PacketType
impl Unpin for PacketType
impl UnsafeUnpin for PacketType
impl UnwindSafe for PacketType
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