pub struct TaskId(/* private fields */);Expand description
Unique identifier for timer tasks
Now wraps a DeferredMap key (u64) which includes generation information for safe reference and prevention of use-after-free.
定时器任务唯一标识符
现在封装 DeferredMap key (u64),包含代数信息以实现安全引用和防止释放后使用
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 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