#[repr(u8)]pub enum PacketType {
Show 23 variants
Sync = 1,
Connect = 2,
Disconnect = 3,
Reset = 4,
Accept = 5,
Rejected = 6,
Finished = 7,
JumpAprom = 8,
JumpDfu = 9,
GetStatus = 10,
Error = 11,
GetData = 12,
GetFile = 13,
StartGraph = 14,
StopGraph = 15,
EnablePdMonitor = 16,
DisablePdMonitor = 17,
MemoryRead = 68,
StreamingAuth = 76,
NotReadable = 39,
Head = 64,
PutData = 65,
Unknown(u8),
}Expand description
KM003C protocol packet types.
Values < 0x40 are control packet types, >= 0x40 are data packet types.
Variants§
Sync = 1
Connect = 2
Disconnect = 3
Reset = 4
Accept = 5
Rejected = 6
Finished = 7
JumpAprom = 8
JumpDfu = 9
GetStatus = 10
Error = 11
GetData = 12
GetFile = 13
StartGraph = 14
StopGraph = 15
EnablePdMonitor = 16
DisablePdMonitor = 17
MemoryRead = 68
StreamingAuth = 76
NotReadable = 39
Head = 64
PutData = 65
Unknown(u8)
Implementations§
Source§impl PacketType
impl PacketType
pub fn is_ctrl_type(&self) -> bool
Trait Implementations§
Source§impl Clone for PacketType
impl Clone for PacketType
Source§fn clone(&self) -> PacketType
fn clone(&self) -> PacketType
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 Copy for PacketType
Source§impl Debug for PacketType
impl Debug for PacketType
impl Eq for PacketType
Source§impl From<PacketType> for u8
impl From<PacketType> for u8
Source§fn from(enum_value: PacketType) -> Self
fn from(enum_value: PacketType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for PacketType
impl From<u8> for PacketType
Source§impl FromPrimitive for PacketType
impl FromPrimitive for PacketType
Source§impl PartialEq for PacketType
impl PartialEq 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