Enum embedded_nano_mesh::PacketState
source · pub enum PacketState {
Normal,
Ping,
Pong,
SendTransaction,
AcceptTransaction,
InitTransaction,
FinishTransaction,
}Expand description
State of the packet.
Variants§
Normal
End receiver of packet with this state - just receives the data.
Ping
Packet with this state being set - forces end-receiver device,
to automatically respond same packet back with Pong state.
Also receiving device receives content of the packet.
Pong
Packet with this state being set - indicates, that receiver has successfully processed the packet.
SendTransaction
Packet with this state being set - forces end-receiver device, to get ready to do full transaction.
AcceptTransaction
Packet with this state being set - is sent by receiver and informs sender device, that receiver have the transaction being started.
InitTransaction
Packet with this state being set - is sent by sender and forces end-receiver device, to do the transaction finish.
FinishTransaction
Packet with this state being set - is sent by receiver and informs sender device, that receiver have the transaction finished.
Trait Implementations§
source§impl Clone for PacketState
impl Clone for PacketState
source§fn clone(&self) -> PacketState
fn clone(&self) -> PacketState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for PacketState
impl PartialEq for PacketState
source§fn eq(&self, other: &PacketState) -> bool
fn eq(&self, other: &PacketState) -> bool
self and other values to be equal, and is used
by ==.