pub struct PredictionKey(pub u64);Expand description
Client-generated stable key used to match a predicted spawn with its authoritative entity.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for PredictionKey
impl Clone for PredictionKey
Source§fn clone(&self) -> PredictionKey
fn clone(&self) -> PredictionKey
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 moreimpl Copy for PredictionKey
Source§impl Debug for PredictionKey
impl Debug for PredictionKey
Source§impl<'de> Deserialize<'de> for PredictionKey
impl<'de> Deserialize<'de> for PredictionKey
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
impl Eq for PredictionKey
Source§impl Hash for PredictionKey
impl Hash for PredictionKey
Source§impl Ord for PredictionKey
impl Ord for PredictionKey
Source§fn cmp(&self, other: &PredictionKey) -> Ordering
fn cmp(&self, other: &PredictionKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PredictionKey
impl PartialEq for PredictionKey
Source§impl PartialOrd for PredictionKey
impl PartialOrd for PredictionKey
Source§impl Serialize for PredictionKey
impl Serialize for PredictionKey
impl StructuralPartialEq for PredictionKey
Auto Trait Implementations§
impl Freeze for PredictionKey
impl RefUnwindSafe for PredictionKey
impl Send for PredictionKey
impl Sync for PredictionKey
impl Unpin for PredictionKey
impl UnsafeUnpin for PredictionKey
impl UnwindSafe for PredictionKey
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