pub struct CommandDispatchFrame {
pub station_id: StationId,
pub client_id: ClientId,
pub command_id: CommandId,
pub entity_id: EntityId,
pub sequence: u64,
pub received_at: Tick,
pub kind: u32,
pub priority: CommandPriority,
pub payload: Vec<u8>,
}Expand description
Internal gateway-to-station command dispatch frame.
Unlike CommandFrame, this preserves the server received_at tick stamped
by the gateway pipeline before the command is forwarded to a station node.
Fields§
§station_id: StationIdTarget station selected by gateway/deployment routing.
client_id: ClientIdClient that submitted the command.
command_id: CommandIdCommand id used for replay and audit.
entity_id: EntityIdEntity the command intends to control.
sequence: u64Client-side sequence number.
received_at: TickServer tick observed when the command entered SectorSync.
kind: u32Game-defined command kind.
priority: CommandPriorityCommand priority.
payload: Vec<u8>Opaque payload owned by the embedding game.
Implementations§
Source§impl CommandDispatchFrame
impl CommandDispatchFrame
Sourcepub fn from_envelope(station_id: StationId, envelope: &CommandEnvelope) -> Self
pub fn from_envelope(station_id: StationId, envelope: &CommandEnvelope) -> Self
Converts a stamped command envelope into an internal dispatch frame.
Sourcepub fn into_envelope(self) -> CommandEnvelope
pub fn into_envelope(self) -> CommandEnvelope
Converts an internal dispatch frame back into a command envelope.
Trait Implementations§
Source§impl Clone for CommandDispatchFrame
impl Clone for CommandDispatchFrame
Source§fn clone(&self) -> CommandDispatchFrame
fn clone(&self) -> CommandDispatchFrame
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 CommandDispatchFrame
impl Debug for CommandDispatchFrame
impl Eq for CommandDispatchFrame
Source§impl PartialEq for CommandDispatchFrame
impl PartialEq for CommandDispatchFrame
impl StructuralPartialEq for CommandDispatchFrame
Auto Trait Implementations§
impl Freeze for CommandDispatchFrame
impl RefUnwindSafe for CommandDispatchFrame
impl Send for CommandDispatchFrame
impl Sync for CommandDispatchFrame
impl Unpin for CommandDispatchFrame
impl UnsafeUnpin for CommandDispatchFrame
impl UnwindSafe for CommandDispatchFrame
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