Trait tokenlock::Token [−][src]
Trait for an unforgeable token used to access the contents of a
TokenLock
<_, Keyhole>
.
A token can "open" a TokenLock
only if the token matches the metaphorical
keyhole.
Safety
Given two distinct instances of T: Token
x
and y
,
x.eq_id(i) && y.eq_id(i)
must not be true
for any i
.