Struct timely::dataflow::channels::message::Message
[−]
[src]
pub struct Message<T, D> { pub time: T, pub data: Content<D>, pub from: usize, pub seq: usize, }
A serializable representation of timestamped data.
Fields
time: T
The timestamp associated with the message.
data: Content<D>
The data in the message.
from: usize
The source worker.
seq: usize
A sequence number for this worker-to-worker stream.
Methods
impl<T, D> Message<T, D>
[src]
fn new(time: T, data: Content<D>, from: usize, seq: usize) -> Message<T, D>
[src]
Allocates a new message from a time, content, source worker id, and sequence number.
Trait Implementations
impl<T: Clone, D: Clone> Clone for Message<T, D>
[src]
fn clone(&self) -> Message<T, D>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Abomonation + Clone, D: Abomonation> Serialize for Message<T, D>
[src]
fn into_bytes(&mut self, bytes: &mut Vec<u8>)
[src]
Append the binary representation of self
to a vector of bytes. The &mut self
argument may be mutated, but the second argument should only be appended to. Read more
fn from_bytes(bytes: &mut Vec<u8>) -> Self
[src]
Recover an instance of Self from its binary representation. The &mut Vec<u8>
argument may be taken with mem::replace
if it is needed. Read more