pub struct CausalEvent {
pub link: CausalLink,
pub payload: Bytes,
pub received_at: u64,
}Expand description
A causal event: link + payload.
Fields§
§link: CausalLinkThe causal link binding this event to its chain.
payload: BytesThe event payload (opaque bytes).
received_at: u64Local timestamp when this event was received/created (nanos since epoch).
Trait Implementations§
Source§impl Clone for CausalEvent
impl Clone for CausalEvent
Source§fn clone(&self) -> CausalEvent
fn clone(&self) -> CausalEvent
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 moreAuto Trait Implementations§
impl !Freeze for CausalEvent
impl RefUnwindSafe for CausalEvent
impl Send for CausalEvent
impl Sync for CausalEvent
impl Unpin for CausalEvent
impl UnsafeUnpin for CausalEvent
impl UnwindSafe for CausalEvent
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