pub struct Message<T, C> {
pub stamp: Stamp<T>,
pub data: C,
pub from: usize,
pub seq: usize,
}Expand description
A serializable representation of timestamped data.
Fields§
§stamp: Stamp<T>The multiset of timestamps affixed to the message.
The message may only result in downstream work at times greater or equal to some element of the stamp. An empty stamp makes no progress claims.
data: CThe data in the message.
from: usizeThe source worker.
seq: usizeA 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
Use timely::buffer::default_capacity instead
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.Auto Trait Implementations§
impl<T, C> Freeze for Message<T, C>
impl<T, C> RefUnwindSafe for Message<T, C>
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> UnsafeUnpin for Message<T, C>
impl<T, C> UnwindSafe for Message<T, C>
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,
impl<T> Exchangeable for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more