pub struct Tagged<M> {
pub ets: u64,
pub msg: M,
}Expand description
A message stamped with the epoch it belongs to.
The stamp lives here rather than in the layer above because the epoch is this instance’s own identity — it stamps what it sends and drops what is not addressed to it.
Fields§
§ets: u64§msg: MTrait Implementations§
Source§impl<'de, M> Deserialize<'de> for Tagged<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for Tagged<M>where
M: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<M: Eq> Eq for Tagged<M>
impl<M: PartialEq> StructuralPartialEq for Tagged<M>
Auto Trait Implementations§
impl<M> Freeze for Tagged<M>where
M: Freeze,
impl<M> RefUnwindSafe for Tagged<M>where
M: RefUnwindSafe,
impl<M> Send for Tagged<M>where
M: Send,
impl<M> Sync for Tagged<M>where
M: Sync,
impl<M> Unpin for Tagged<M>where
M: Unpin,
impl<M> UnsafeUnpin for Tagged<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for Tagged<M>where
M: 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