project-chip / rs-matter

Rust implementation of the Matter protocol. Status: Experimental
Apache License 2.0
303 stars 43 forks source link

Make all system clusters cloneable #165

Closed ivmarkov closed 2 months ago

ivmarkov commented 2 months ago

Yeah, I need that for my own selfish purposes :)...

BUT: I think it is a good idea anyway, because all system clusters are very small in size, as they either contain references, or minimal aggregated data. So I think we can ensure their cloneability in the long run without shooting ourselves in the foot.

In fact, we should try to derive more. For example, would be good to have Debug on these as well, and then Debug, Clone, Eq on most TLV structures. But... step by step.