Trait that can be used to associate events with arbitrary enums when using
Simple enums that have no or primitive variant data data can use the
custom derive to implement this trait. See
event_token_derive::event_token for details.
Converts this token into a u64 that can be turned back into a token via
Converts a raw token as returned from
as_raw_token back into a token.
It is invalid to give a raw token that was not returned via
as_raw_token from the same
Self. The implementation can expect that this will never happen as a result of its usage
Implementations on Foreign Types§
Implement token for implementations that wish to use this struct as such