pub struct StationEventFrame {
pub event_id: EventId,
pub source_station: StationId,
pub target_station: StationId,
pub source_tick: Tick,
pub target_tick: Tick,
pub priority: EventPriority,
pub kind: EventKind,
}Expand description
Cross-station event frame.
Fields§
§event_id: EventIdIdempotency key.
source_station: StationIdSource station.
target_station: 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.
Implementations§
Source§impl StationEventFrame
impl StationEventFrame
Sourcepub fn from_event(event: &StationEvent) -> Self
pub fn from_event(event: &StationEvent) -> Self
Converts a runtime station event into a wire frame.
Sourcepub fn into_event(self) -> StationEvent
pub fn into_event(self) -> StationEvent
Converts a wire frame into a runtime station event.
Trait Implementations§
Source§impl Clone for StationEventFrame
impl Clone for StationEventFrame
Source§fn clone(&self) -> StationEventFrame
fn clone(&self) -> StationEventFrame
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 StationEventFrame
impl Debug for StationEventFrame
impl Eq for StationEventFrame
Source§impl PartialEq for StationEventFrame
impl PartialEq for StationEventFrame
impl StructuralPartialEq for StationEventFrame
Auto Trait Implementations§
impl Freeze for StationEventFrame
impl RefUnwindSafe for StationEventFrame
impl Send for StationEventFrame
impl Sync for StationEventFrame
impl Unpin for StationEventFrame
impl UnsafeUnpin for StationEventFrame
impl UnwindSafe for StationEventFrame
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