This commit is contained in:
aozhiwei 2023-10-07 22:55:14 +08:00
parent f87e9107f5
commit c7dae045be

View File

@ -77,4 +77,59 @@ impl Timer {
}
pub fn set_timeout(&mut self,
expire_time: i32,
cb: fn (i32, Option<Vec<Rc::<dyn Any>>>)) {
}
pub fn set_timeout_ex(&mut self,
expire_time: i32,
cb: fn (i32, Option<Vec<Rc::<dyn Any>>>),
attacher: Rc::<RefCell::<TimerAttacher>>) {
}
pub fn set_timeout_wp(&mut self,
expire_time: i32,
cb: fn (i32, Option<Vec<Rc::<dyn Any>>>)) -> TimerWp {
return TimerWp::new();
}
pub fn set_timeout_wp_ex(&mut self,
expire_time: i32,
cb: fn (i32, Option<Vec<Rc::<dyn Any>>>),
attacher: Rc::<RefCell::<TimerAttacher>>) -> TimerWp {
return TimerWp::new();
}
pub fn fire_event(&mut self,
timer_wp: TimerWp,
e: i32,
args: Option<Vec<Rc::<dyn Any>>>) {
}
pub fn modify(&mut self, timer_wp: TimerWp, expire_time: i32) {
}
pub fn delete_current_timer(&mut self) {
}
pub fn is_running(&self) {
}
pub fn delete(&mut self, timer_wp: TimerWp) {
}
pub fn reset(&mut self, timer_wp: TimerWp) {
}
pub fn get_remain_time(&mut self, timer_wp: TimerWp) -> i64 {
return 0;
}
pub fn get_idle_time(&self) -> i64 {
return 0;
}
}