Struct orchestra::MessagePacket
source · pub struct MessagePacket<T> {
pub signals_received: usize,
pub message: T,
}
Expand description
A wrapping type for messages.
Includes a counter to synchronize signals with messages, such that no inconsistent message sequences are prevented.
Fields§
§signals_received: usize
Signal level at the point of reception.
Required to assure signals were consumed before consuming messages that are based on the assumption that a certain signal was assumed.
message: T
The message to be sent/consumed.