pub trait Property:
Clone
+ Send
+ Sync
+ PartialEq
+ 'static {
const KEY: &'static str;
}Expand description
Marker trait for properties that can be stored and watched
Properties must be:
- Clone: For copying values to watchers
- Send + Sync: For thread-safe access
- PartialEq: For change detection (only emit when value actually changes)
- ’static: For type-erased storage using TypeId
The KEY constant provides a human-readable identifier for debugging, logging, and event filtering.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".