pub struct Runtime { /* private fields */ }Implementations§
Source§impl Runtime
impl Runtime
pub fn new(scheduler: Arc<dyn RuntimeScheduler>) -> Self
pub fn handle(&self) -> RuntimeHandle
pub fn has_updates(&self) -> bool
pub fn needs_frame(&self) -> bool
pub fn set_needs_frame(&self, value: bool)
Sourcepub fn last_frame_time_nanos(&self) -> Option<u64>
pub fn last_frame_time_nanos(&self) -> Option<u64>
Animation-clock time of the most recent frame-callback drain. This is
the same clock Animatables advance on (virtual under robot exact
captures), so per-frame integrators derive dt from it instead of wall
time.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Runtime
impl !Send for Runtime
impl !Sync for Runtime
impl !UnwindSafe for Runtime
impl Freeze for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
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