pub trait AppDiagnosticsExt {
// Required method
fn register_physics_diagnostics<T: PhysicsDiagnostics>(&mut self);
}
Expand description
An extension trait for registering physics diagnostics in an App
.
Required Methods§
Sourcefn register_physics_diagnostics<T: PhysicsDiagnostics>(&mut self)
fn register_physics_diagnostics<T: PhysicsDiagnostics>(&mut self)
Registers timer and counter diagnostics for a resource implementing PhysicsDiagnostics
.
This method should be called in Plugin::finish
to ensure that Diagnostic
s
are only tracked if the [PhysicsDiagnosticsPlugin
] was added to the app.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.