pub struct NetworkId(pub u64);Expand description
A globally unique entity identifier used in all network communication. Assigned by the server. Immutable for the lifetime of the entity.
This is NOT the ECS’s internal entity ID. The WorldState adapter
translates between NetworkId and the ECS’s local handle.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for NetworkId
impl<'de> Deserialize<'de> for NetworkId
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 Ord for NetworkId
impl Ord for NetworkId
Source§impl PartialOrd for NetworkId
impl PartialOrd for NetworkId
impl Copy for NetworkId
impl Eq for NetworkId
impl StructuralPartialEq for NetworkId
Auto Trait Implementations§
impl Freeze for NetworkId
impl RefUnwindSafe for NetworkId
impl Send for NetworkId
impl Sync for NetworkId
impl Unpin for NetworkId
impl UnsafeUnpin for NetworkId
impl UnwindSafe for NetworkId
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