pub struct VARS_APP;
Expand description
VARS APP integration.
Implementations§
source§impl VARS_APP
impl VARS_APP
sourcepub fn init_app_waker(&self, waker: impl Fn() + Send + Sync + 'static)
pub fn init_app_waker(&self, waker: impl Fn() + Send + Sync + 'static)
Register a closure called when apply_updates
should be called because there are changes pending.
§Panics
Panics if already called for the current app. This must be called by app framework implementers only.
sourcepub fn init_modify_trace(
&self,
trace: impl Fn(&'static str) + Send + Sync + 'static,
)
pub fn init_modify_trace( &self, trace: impl Fn(&'static str) + Send + Sync + 'static, )
Register a closure called when a variable modify is about to be scheduled. The closure parameter is the type name of the variable type.
§Panics
Panics if already called for the current app. This must be called by app framework implementers only.
sourcepub fn has_pending_updates(&self) -> bool
pub fn has_pending_updates(&self) -> bool
If apply_updates
will do anything.
sourcepub fn set_sys_animations_enabled(&self, enabled: bool)
pub fn set_sys_animations_enabled(&self, enabled: bool)
Sets the sys_animations_enabled
read-only variable.
sourcepub fn apply_updates(&self)
pub fn apply_updates(&self)
Apply all pending updates, call hooks and update bindings.
This must be called by app framework implementers only.
sourcepub fn update_animations(&self, timer: &mut impl AnimationTimer)
pub fn update_animations(&self, timer: &mut impl AnimationTimer)
Does one animation frame if the frame duration has elapsed.
This must be called by app framework implementers only.
sourcepub fn next_deadline(&self, timer: &mut impl AnimationTimer)
pub fn next_deadline(&self, timer: &mut impl AnimationTimer)
Register the next animation frame, if there are any active animations.
This must be called by app framework implementers only.
Auto Trait Implementations§
impl Freeze for VARS_APP
impl RefUnwindSafe for VARS_APP
impl Send for VARS_APP
impl Sync for VARS_APP
impl Unpin for VARS_APP
impl UnwindSafe for VARS_APP
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more