pub struct TaskId(/* private fields */);Expand description
Unique task identifier.
Task IDs are monotonically increasing and never reused within a session.
This follows the same pattern as BufferId and
ScopeId.
§Example
use reovim_kernel::api::v1::*;
let id1 = TaskId::new();
let id2 = TaskId::new();
assert_ne!(id1, id2);
assert!(id2.as_u64() > id1.as_u64());Implementations§
Trait Implementations§
Source§impl Ord for TaskId
impl Ord for TaskId
Source§impl PartialOrd for TaskId
impl PartialOrd for TaskId
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