pub struct TimerId(/* private fields */);Expand description
Unique timer identifier.
Timer IDs are monotonically increasing and never reused within a session.
This follows the same pattern as TaskId and
BufferId.
§Example
use reovim_kernel::api::v1::*;
let id1 = TimerId::new();
let id2 = TimerId::new();
assert_ne!(id1, id2);
assert!(id2.as_u64() > id1.as_u64());Implementations§
Trait Implementations§
Source§impl Ord for TimerId
impl Ord for TimerId
Source§impl PartialOrd for TimerId
impl PartialOrd for TimerId
impl Copy for TimerId
impl Eq for TimerId
impl StructuralPartialEq for TimerId
Auto Trait Implementations§
impl Freeze for TimerId
impl RefUnwindSafe for TimerId
impl Send for TimerId
impl Sync for TimerId
impl Unpin for TimerId
impl UnsafeUnpin for TimerId
impl UnwindSafe for TimerId
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