pub struct GameLoopTick {
pub seq_no: u64,
pub elapsed_ms: u32,
pub shard: String,
}Expand description
Represents a single tick of the game loop. This will be emitted by a game loop component
Fields§
§seq_no: u64Monotonically increasing sequence number of the tick
elapsed_ms: u32Elapsed time (in ms) since the last tick was produced. This should be identical to frame-rate unless a system is lagging
shard: StringThe name/ID of the shard for which this tick is bound
Implementations§
Trait Implementations§
Source§impl Debug for GameLoopTick
impl Debug for GameLoopTick
Source§impl Default for GameLoopTick
impl Default for GameLoopTick
Source§fn default() -> GameLoopTick
fn default() -> GameLoopTick
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GameLoopTick
impl<'de> Deserialize<'de> for GameLoopTick
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
Auto Trait Implementations§
impl Freeze for GameLoopTick
impl RefUnwindSafe for GameLoopTick
impl Send for GameLoopTick
impl Sync for GameLoopTick
impl Unpin for GameLoopTick
impl UnwindSafe for GameLoopTick
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