Struct dataflow::source::SourceMessage [−][src]
pub struct SourceMessage<Key, Value> {
pub partition: PartitionId,
pub offset: MzOffset,
pub upstream_time_millis: Option<i64>,
pub key: Key,
pub value: Value,
}
Expand description
Source-agnostic wrapper for messages. Each source must implement a conversion to Message.
Fields
partition: PartitionId
Partition from which this message originates
offset: MzOffset
Materialize offset of the message (1-indexed)
upstream_time_millis: Option<i64>
The time that an external system first observed the message
Milliseconds since the unix epoch
key: Key
The message key
value: Value
The message value
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl<Key, Value> RefUnwindSafe for SourceMessage<Key, Value> where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Key, Value> Send for SourceMessage<Key, Value> where
Key: Send,
Value: Send,
impl<Key, Value> Sync for SourceMessage<Key, Value> where
Key: Sync,
Value: Sync,
impl<Key, Value> Unpin for SourceMessage<Key, Value> where
Key: Unpin,
Value: Unpin,
impl<Key, Value> UnwindSafe for SourceMessage<Key, Value> where
Key: UnwindSafe,
Value: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more