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. does no additional logic over it.
Ping
Packet with this state being set - forces end-receiver device,
to automatically respond packet with same content back with
Pong
state being set. 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 more