pub trait DefaultRenderTimerImpl: Send + Sync {
// Required method
fn start_core(
&self,
timer: &DefaultRenderTimer,
tick: RenderTimerTick,
) -> RenderTimerSubscription;
// Provided method
fn runs_in_background(&self) -> bool { ... }
}Expand description
The overridable members of DefaultRenderTimer.
Required Methods§
Sourcefn start_core(
&self,
timer: &DefaultRenderTimer,
tick: RenderTimerTick,
) -> RenderTimerSubscription
fn start_core( &self, timer: &DefaultRenderTimer, tick: RenderTimerTick, ) -> RenderTimerSubscription
Provides the implementation of starting the timer.
tick is the method to call on each tick. This can be overridden by
platform implementations to use a specialized timer implementation.
Provided Methods§
Sourcefn runs_in_background(&self) -> bool
fn runs_in_background(&self) -> bool
Indicates if the timer ticks on a non-UI thread.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".