pub struct StationEvent {
pub id: EventId,
pub source: StationId,
pub target: StationId,
pub source_tick: Tick,
pub target_tick: Tick,
pub priority: EventPriority,
pub kind: EventKind,
}Expand description
Event envelope routed between stations.
Fields§
§id: EventIdIdempotency key.
source: StationIdSource station.
target: StationIdTarget station.
source_tick: TickTick observed at source.
target_tick: TickTick at which target should apply the event.
priority: EventPriorityPriority class.
kind: EventKindEvent payload kind.
Trait Implementations§
Source§impl Clone for StationEvent
impl Clone for StationEvent
Source§fn clone(&self) -> StationEvent
fn clone(&self) -> StationEvent
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 StationEvent
impl Debug for StationEvent
impl Eq for StationEvent
Source§impl PartialEq for StationEvent
impl PartialEq for StationEvent
impl StructuralPartialEq for StationEvent
Auto Trait Implementations§
impl Freeze for StationEvent
impl RefUnwindSafe for StationEvent
impl Send for StationEvent
impl Sync for StationEvent
impl Unpin for StationEvent
impl UnsafeUnpin for StationEvent
impl UnwindSafe for StationEvent
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