pub struct EngineClock(/* private fields */);Expand description
Patch form of a fingerprinted state envelope, against the last one sent to
this seat. None the first time a seat is served, or if anything is missing,
and the caller falls back to the full state, which is always correct.
When the engine host last received a player’s response, as milliseconds on
its own monotonic clock. The response path writes it and the emit path
reads it, so an outgoing envelope can say how long the engine took without
anyone comparing clocks across hosts.
Implementations§
Source§impl EngineClock
impl EngineClock
pub fn mark_response(&self)
Sourcepub fn elapsed_ms(&self) -> Option<u32>
pub fn elapsed_ms(&self) -> Option<u32>
Milliseconds since the last response, or None if none has arrived yet
or the gap is implausibly long (the engine was idle, not working).
Trait Implementations§
Source§impl Clone for EngineClock
impl Clone for EngineClock
Source§fn clone(&self) -> EngineClock
fn clone(&self) -> EngineClock
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 moreSource§impl Default for EngineClock
impl Default for EngineClock
Source§fn default() -> EngineClock
fn default() -> EngineClock
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EngineClock
impl RefUnwindSafe for EngineClock
impl Send for EngineClock
impl Sync for EngineClock
impl Unpin for EngineClock
impl UnsafeUnpin for EngineClock
impl UnwindSafe for EngineClock
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.