pub struct ReplicationEvent {
pub network_id: NetworkId,
pub component_kind: ComponentKind,
pub payload: Vec<u8>,
pub tick: u64,
}Expand description
An event representing a change to a single component on a single entity.
Produced by WorldState::extract_deltas() on the server.
Fields§
§network_id: NetworkIdWhich entity changed.
component_kind: ComponentKindWhich component type changed.
payload: Vec<u8>The serialized delta payload (only the changed fields). In Phase 1, this is a full snapshot per component for simplicity.
tick: u64The server tick at which this change was recorded.
Trait Implementations§
Source§impl Clone for ReplicationEvent
impl Clone for ReplicationEvent
Source§fn clone(&self) -> ReplicationEvent
fn clone(&self) -> ReplicationEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 ReplicationEvent
impl Debug for ReplicationEvent
Source§impl<'de> Deserialize<'de> for ReplicationEvent
impl<'de> Deserialize<'de> for ReplicationEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReplicationEvent
impl PartialEq for ReplicationEvent
Source§impl Serialize for ReplicationEvent
impl Serialize for ReplicationEvent
impl Eq for ReplicationEvent
impl StructuralPartialEq for ReplicationEvent
Auto Trait Implementations§
impl Freeze for ReplicationEvent
impl RefUnwindSafe for ReplicationEvent
impl Send for ReplicationEvent
impl Sync for ReplicationEvent
impl Unpin for ReplicationEvent
impl UnsafeUnpin for ReplicationEvent
impl UnwindSafe for ReplicationEvent
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