pub struct DataPacket {
pub kind: Symbol,
pub payload: Expr,
}Expand description
An opaque structured payload: a kind-tagged arbitrary Expr value.
Used for application-defined traffic the fabric does not interpret, such as
model events and rank frontiers (see StreamPacket::model_event and
StreamPacket::rank_frontier).
Fields§
§kind: SymbolSymbol categorizing the payload (for example stream/data/model-event).
payload: ExprThe application-defined payload expression.
Implementations§
Trait Implementations§
Source§impl Clone for DataPacket
impl Clone for DataPacket
Source§fn clone(&self) -> DataPacket
fn clone(&self) -> DataPacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataPacket
impl Debug for DataPacket
impl Eq for DataPacket
Source§impl PartialEq for DataPacket
impl PartialEq for DataPacket
Source§fn eq(&self, other: &DataPacket) -> bool
fn eq(&self, other: &DataPacket) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DataPacket
Auto Trait Implementations§
impl Freeze for DataPacket
impl RefUnwindSafe for DataPacket
impl Send for DataPacket
impl Sync for DataPacket
impl Unpin for DataPacket
impl UnsafeUnpin for DataPacket
impl UnwindSafe for DataPacket
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