pub struct TimerTask { /* private fields */ }Expand description
Timer Task
Users interact via a two-step API
- Create task using
TimerTask::new() - Register task using
TimerWheel::register()orTimerService::register()
定时器任务
用户通过两步 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