pub struct Message<T, D> {
pub time: T,
pub data: D,
pub from: usize,
pub seq: usize,
}
Expand description
A serializable representation of timestamped data.
Fields§
§time: T
The timestamp associated with the message.
data: D
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, D> Message<T, D>
impl<T, D> Message<T, D>
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, D> Abomonation for Message<T, D>where
T: Abomonation,
D: Abomonation,
impl<T, D> Abomonation for Message<T, D>where
T: Abomonation,
D: Abomonation,
Source§impl<'de, T, D> Deserialize<'de> for Message<T, D>where
T: Deserialize<'de>,
D: Deserialize<'de>,
impl<'de, T, D> Deserialize<'de> for Message<T, D>where
T: Deserialize<'de>,
D: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T, D> Freeze for Message<T, D>
impl<T, D> RefUnwindSafe for Message<T, D>where
T: RefUnwindSafe,
D: RefUnwindSafe,
impl<T, D> Send for Message<T, D>
impl<T, D> Sync for Message<T, D>
impl<T, D> Unpin for Message<T, D>
impl<T, D> UnwindSafe for Message<T, D>where
T: UnwindSafe,
D: 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