[][src]Struct timely::dataflow::channels::Message

pub struct Message<T, D> {
    pub time: T,
    pub data: Vec<D>,
    pub from: usize,
    pub seq: usize,
}

A serializable representation of timestamped data.

Fields

time: T

The timestamp associated with the message.

data: Vec<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]

pub fn default_length() -> usize[src]

Default buffer size.

pub fn new(time: T, data: Vec<D>, from: usize, seq: usize) -> Self[src]

Creates a new message instance from arguments.

pub fn push_at<P: Push<Bundle<T, D>>>(
    buffer: &mut Vec<D>,
    time: T,
    pusher: &mut P
)
[src]

Forms a message, and pushes contents at pusher.

Trait Implementations

impl<T: Clone, D: Clone> Clone for Message<T, D>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T, D> Abomonation for Message<T, D> where
    T: Abomonation,
    Vec<D>: Abomonation,
    D: Abomonation
[src]

impl<T, D> Serialize for Message<T, D> where
    T: Serialize,
    D: Serialize
[src]

impl<'de, T, D> Deserialize<'de> for Message<T, D> where
    T: Deserialize<'de>,
    D: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<T, D> Sync for Message<T, D> where
    D: Sync,
    T: Sync

impl<T, D> Unpin for Message<T, D> where
    D: Unpin,
    T: Unpin

impl<T, D> Send for Message<T, D> where
    D: Send,
    T: Send

impl<T, D> RefUnwindSafe for Message<T, D> where
    D: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, D> UnwindSafe for Message<T, D> where
    D: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Data for T where
    T: 'static + Clone
[src]

impl<T> ExchangeData for T where
    T: Data + Data
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Data for T where
    T: 'static + Send + Sync + Any + Abomonation
[src]