pub struct TaskId { /* private fields */ }Expand description
Unique identifier for timer tasks.
A task ID includes the owning timing wheel identity in addition to the generational DeferredMap key. The owner field is private and is checked by every wheel map operation before the raw key reaches DeferredMap.
定时器任务唯一标识符。
任务 ID 除了包含 DeferredMap 的代数 key,还包含所属时间轮身份。owner 字段保持私有,所有时间轮 map 操作都会在使用 raw key 前先校验它。
Implementations§
Trait Implementations§
impl Copy for TaskId
impl Eq for TaskId
impl StructuralPartialEq for TaskId
Auto Trait Implementations§
impl Freeze for TaskId
impl RefUnwindSafe for TaskId
impl Send for TaskId
impl Sync for TaskId
impl Unpin for TaskId
impl UnsafeUnpin for TaskId
impl UnwindSafe for TaskId
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