pub struct Message<T, C> {
pub time: T,
pub data: C,
pub from: usize,
pub seq: usize,
}
Expand description
A serializable representation of timestamped data.
Fields§
§time: T
The timestamp associated with the message.
data: C
The data in the message.
from: usize
The source worker.
seq: usize
A sequence number for this worker-to-worker stream.
Implementations§
source§impl<T, C> Message<T, C>
impl<T, C> Message<T, C>
sourcepub fn default_length() -> usize
👎Deprecated: Use timely::buffer::default_capacity instead
pub fn default_length() -> usize
Default buffer size.
Trait Implementations§
source§impl<T, C> Bytesable for Message<T, C>
impl<T, C> Bytesable for Message<T, C>
source§fn from_bytes(bytes: Bytes) -> Self
fn from_bytes(bytes: Bytes) -> Self
Wrap bytes as
Self
.source§fn length_in_bytes(&self) -> usize
fn length_in_bytes(&self) -> usize
The number of bytes required to serialize the data.
source§fn into_bytes<W: Write>(&self, writer: &mut W)
fn into_bytes<W: Write>(&self, writer: &mut W)
Writes the binary representation into
writer
.source§impl<T: Eq + Data, CB, P, H> Push<Message<T, <CB as ContainerBuilder>::Container>> for Exchange<T, CB, P, H>
impl<T: Eq + Data, CB, P, H> Push<Message<T, <CB as ContainerBuilder>::Container>> for Exchange<T, CB, P, H>
Auto Trait Implementations§
impl<T, C> Freeze for Message<T, C>
impl<T, C> RefUnwindSafe for Message<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> Send for Message<T, C>
impl<T, C> Sync for Message<T, C>
impl<T, C> Unpin for Message<T, C>
impl<T, C> UnwindSafe for Message<T, C>where
T: UnwindSafe,
C: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)