Skip to content

TimerToken

[Source]

Identifies a timer operation. Returned by set_timer() on success and delivered to _on_timer() when the timer fires.

Tokens use structural equality based on their ID, which is scoped per connection. Applications managing multiple connections should pair tokens with connection identity to avoid ambiguity.

class val TimerToken is
  Equatable[TimerToken val] ref

Implements


Public fields

let id: USize val

[Source]


Public Functions

eq

[Source]

fun box eq(
  that: TimerToken val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: TimerToken val)
: Bool val

Parameters

Returns