pub struct ThreadProxyRenderTimer { /* private fields */ }Expand description
A render timer that moves the ticks of another timer to a dedicated thread.
Implementations§
Source§impl ThreadProxyRenderTimer
impl ThreadProxyRenderTimer
Sourcepub const DEFAULT_MAX_STACK_SIZE: usize
pub const DEFAULT_MAX_STACK_SIZE: usize
The stack size of the timer thread used by new.
pub fn new(inner: Arc<dyn IRenderTimer>) -> Arc<ThreadProxyRenderTimer> ⓘ
pub fn with_max_stack_size( inner: Arc<dyn IRenderTimer>, max_stack_size: usize, ) -> Arc<ThreadProxyRenderTimer> ⓘ
Trait Implementations§
Source§impl Drop for ThreadProxyRenderTimer
impl Drop for ThreadProxyRenderTimer
Source§impl IRenderTimer for ThreadProxyRenderTimer
impl IRenderTimer for ThreadProxyRenderTimer
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 ThreadProxyRenderTimer
impl !RefUnwindSafe for ThreadProxyRenderTimer
impl !UnwindSafe for ThreadProxyRenderTimer
impl Send for ThreadProxyRenderTimer
impl Sync for ThreadProxyRenderTimer
impl Unpin for ThreadProxyRenderTimer
impl UnsafeUnpin for ThreadProxyRenderTimer
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