Trait tokenlock::singleton::SingletonTokenFactory
source · [−]Expand description
Associates a type with a flag indicating whether an instance of
SingletonToken
<Self>
is present.
Enables the SingletonToken
::<Self>::
new
method.
Use impl_singleton_token_factory!
to implement this trait.
Safety
Implementing this trait incorrectly might break Token
’s invariants.