pub trait Key:
Hash
+ Eq
+ Debug
+ Send
+ Sync
+ 'static { }
Expand description
A key that can be used to identify a task and its await-tree in the Registry
.
All thread-safe types that can be used as a key of a hash map are automatically implemented with this trait.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.