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<'de, T, C> Deserialize<'de> for Message<T, C>where
T: Deserialize<'de>,
C: Deserialize<'de>,
impl<'de, T, C> Deserialize<'de> for Message<T, C>where
T: Deserialize<'de>,
C: 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, 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
)