pub struct LogicFrameReport { /* private fields */ }Expand description
Diagnostics for a completed application frame.
Implementations§
Source§impl LogicFrameReport
impl LogicFrameReport
Sourcepub const fn frame_index(&self) -> u64
pub const fn frame_index(&self) -> u64
Returns the accepted application-frame index.
Sourcepub const fn timing(&self) -> FixedFramePlan
pub const fn timing(&self) -> FixedFramePlan
Returns bounded fixed-work planning and catch-up drops.
Sourcepub const fn fixed_ticks_attempted(&self) -> u32
pub const fn fixed_ticks_attempted(&self) -> u32
Returns the number of fixed ticks that began, including a failed tick.
Sourcepub const fn spawned(&self) -> usize
pub const fn spawned(&self) -> usize
Returns managed entities spawned by committed stage batches.
Sourcepub const fn despawned(&self) -> usize
pub const fn despawned(&self) -> usize
Returns managed entities despawned by committed stage batches.
Sourcepub const fn exit_requested(&self) -> bool
pub const fn exit_requested(&self) -> bool
Returns whether a committed stage batch requested application exit.
Desktop honors this by ending its event loop without presenting another frame. A headless host decides when to stop its own driving loop.
Sourcepub const fn transitions_suppressed_by_exit(&self) -> usize
pub const fn transitions_suppressed_by_exit(&self) -> usize
Returns replacement requests ignored because exit took precedence.
Sourcepub const fn dropped_for_transition(&self) -> Option<DroppedFixedTime>
pub const fn dropped_for_transition(&self) -> Option<DroppedFixedTime>
Returns whole ticks discarded because a stopped transition was rejected.
Sourcepub const fn transition(&self) -> &FrameTransition
pub const fn transition(&self) -> &FrameTransition
Returns the frame’s transition result.
Sourcepub const fn extracted_generation(&self) -> Option<WorldGeneration>
pub const fn extracted_generation(&self) -> Option<WorldGeneration>
Returns the generation published by successful CPU extraction.
Sourcepub const fn failure(&self) -> Option<&FrameFailure>
pub const fn failure(&self) -> Option<&FrameFailure>
Returns a post-begin failure, if the frame stopped early or extraction was rejected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogicFrameReport
impl RefUnwindSafe for LogicFrameReport
impl Send for LogicFrameReport
impl Sync for LogicFrameReport
impl Unpin for LogicFrameReport
impl UnsafeUnpin for LogicFrameReport
impl UnwindSafe for LogicFrameReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.