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.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MessagePacket<T>where
T: Freeze,
impl<T> RefUnwindSafe for MessagePacket<T>where
T: RefUnwindSafe,
impl<T> Send for MessagePacket<T>where
T: Send,
impl<T> Sync for MessagePacket<T>where
T: Sync,
impl<T> Unpin for MessagePacket<T>where
T: Unpin,
impl<T> UnwindSafe for MessagePacket<T>where
T: UnwindSafe,
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