pub struct SleepLoopRenderTimer { /* private fields */ }Expand description
A render timer that ticks on a thread of its own, sleeping between the ticks.
Implementations§
Trait Implementations§
Source§impl Drop for SleepLoopRenderTimer
impl Drop for SleepLoopRenderTimer
Source§impl IRenderTimer for SleepLoopRenderTimer
impl IRenderTimer for SleepLoopRenderTimer
Source§fn tick(&self) -> Option<RenderTimerTick>
fn tick(&self) -> Option<RenderTimerTick>
Gets the callback to be invoked when the timer ticks.
Source§fn set_tick(&self, value: Option<RenderTimerTick>)
fn set_tick(&self, value: Option<RenderTimerTick>)
Sets the callback to be invoked when the timer ticks. Read more
Source§fn runs_in_background(&self) -> bool
fn runs_in_background(&self) -> bool
Indicates if the timer ticks on a non-UI thread.
Source§fn request_tick_out_of_turn(&self)
fn request_tick_out_of_turn(&self)
Asks for a tick out of turn: as soon as the thread that ticks can
produce one, without waiting for the next period of the timer (the
next frame of a display). Not from upstream. Read more
Auto Trait Implementations§
impl !Freeze for SleepLoopRenderTimer
impl RefUnwindSafe for SleepLoopRenderTimer
impl Send for SleepLoopRenderTimer
impl Sync for SleepLoopRenderTimer
impl Unpin for SleepLoopRenderTimer
impl UnsafeUnpin for SleepLoopRenderTimer
impl UnwindSafe for SleepLoopRenderTimer
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more