pub trait TimerService {
// Required methods
fn start_timer(&mut self, interval_ms: u32, repeat: bool) -> TimerId;
fn stop_timer(&mut self, timer: TimerId);
fn request_frame(&mut self);
fn now(&self) -> f64;
}Expand description
Timers e frames (como IFMXTimerService).
Required Methods§
fn start_timer(&mut self, interval_ms: u32, repeat: bool) -> TimerId
fn stop_timer(&mut self, timer: TimerId)
Sourcefn request_frame(&mut self)
fn request_frame(&mut self)
Pede um frame (usado pelas animações; só enquanto houver animação ativa).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".