pub struct CommandEnvelope {
pub id: CommandId,
pub client_id: ClientId,
pub entity_id: EntityId,
pub sequence: u64,
pub received_at: Tick,
pub kind: u32,
pub priority: CommandPriority,
pub payload: Vec<u8>,
}Expand description
Command envelope accepted by the generic command pipeline.
Fields§
§id: CommandIdCommand id used for replay and audit.
client_id: ClientIdClient that submitted the command.
entity_id: EntityIdEntity the command intends to control.
sequence: u64Client-side sequence number.
received_at: TickServer tick observed when the command entered the runtime.
kind: u32Game-defined command kind.
priority: CommandPriorityCommand priority.
payload: Vec<u8>Opaque payload owned by the embedding game.
Trait Implementations§
Source§impl Clone for CommandEnvelope
impl Clone for CommandEnvelope
Source§fn clone(&self) -> CommandEnvelope
fn clone(&self) -> CommandEnvelope
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 CommandEnvelope
impl Debug for CommandEnvelope
impl Eq for CommandEnvelope
Source§impl PartialEq for CommandEnvelope
impl PartialEq for CommandEnvelope
impl StructuralPartialEq for CommandEnvelope
Auto Trait Implementations§
impl Freeze for CommandEnvelope
impl RefUnwindSafe for CommandEnvelope
impl Send for CommandEnvelope
impl Sync for CommandEnvelope
impl Unpin for CommandEnvelope
impl UnsafeUnpin for CommandEnvelope
impl UnwindSafe for CommandEnvelope
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