magicstatemachines/policy.rs
1/// State policy permitting [`crate::State`] to clone its runtime value.
2///
3/// States implement this automatically. A definition crate can opt out with:
4///
5/// ```ignore
6/// impl !StateClone for Sensitive {}
7/// ```
8pub auto trait StateClone {}
9
10/// State policy permitting [`crate::State`] to copy its runtime value.
11///
12/// States implement this automatically. A definition crate can opt out with:
13///
14/// ```ignore
15/// impl !StateCopy for Connected {}
16/// ```
17pub auto trait StateCopy {}