pub struct TimerTask { /* private fields */ }Expand description
定时器任务
用户通过两步式 API 使用:
- 使用
TimerTask::new()创建任务 - 使用
TimerWheel::register()或TimerService::register()注册任务
Implementations§
Auto Trait Implementations§
impl Freeze for TimerTask
impl !RefUnwindSafe for TimerTask
impl Send for TimerTask
impl Sync for TimerTask
impl Unpin for TimerTask
impl !UnwindSafe for TimerTask
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