pub struct ContextMessage<M> {
pub message: M,
pub meta: MessageMeta,
}Expand description
A message paired with its metadata.
Parameterised over M, the concrete message type used by a particular operator.
Both fields are public so callers can construct messages directly.
Fields§
§message: MThe message payload.
meta: MessageMetaPer-message metadata (compaction policy, source, salience, version).
Trait Implementations§
Source§impl<M: Clone> Clone for ContextMessage<M>
impl<M: Clone> Clone for ContextMessage<M>
Source§fn clone(&self) -> ContextMessage<M>
fn clone(&self) -> ContextMessage<M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M: Debug> Debug for ContextMessage<M>
impl<M: Debug> Debug for ContextMessage<M>
Source§impl<'de, M> Deserialize<'de> for ContextMessage<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for ContextMessage<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
Auto Trait Implementations§
impl<M> Freeze for ContextMessage<M>where
M: Freeze,
impl<M> RefUnwindSafe for ContextMessage<M>where
M: RefUnwindSafe,
impl<M> Send for ContextMessage<M>where
M: Send,
impl<M> Sync for ContextMessage<M>where
M: Sync,
impl<M> Unpin for ContextMessage<M>where
M: Unpin,
impl<M> UnsafeUnpin for ContextMessage<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for ContextMessage<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