pub struct ComponentUpdate {
pub network_id: NetworkId,
pub component_kind: ComponentKind,
pub payload: Vec<u8>,
pub tick: u64,
}Expand description
An inbound update to be applied to the ECS.
Produced by Encoder::decode() on the receiving end.
Fields§
§network_id: NetworkIdThe entity to update.
component_kind: ComponentKindWhich component type to update.
payload: Vec<u8>The deserialized field values.
tick: u64The tick this update originated from.
Trait Implementations§
Source§impl Clone for ComponentUpdate
impl Clone for ComponentUpdate
Source§fn clone(&self) -> ComponentUpdate
fn clone(&self) -> ComponentUpdate
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 ComponentUpdate
impl Debug for ComponentUpdate
Source§impl<'de> Deserialize<'de> for ComponentUpdate
impl<'de> Deserialize<'de> for ComponentUpdate
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 ComponentUpdate
impl PartialEq for ComponentUpdate
Source§impl Serialize for ComponentUpdate
impl Serialize for ComponentUpdate
impl Eq for ComponentUpdate
impl StructuralPartialEq for ComponentUpdate
Auto Trait Implementations§
impl Freeze for ComponentUpdate
impl RefUnwindSafe for ComponentUpdate
impl Send for ComponentUpdate
impl Sync for ComponentUpdate
impl Unpin for ComponentUpdate
impl UnsafeUnpin for ComponentUpdate
impl UnwindSafe for ComponentUpdate
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