//! Trait for device identification
/// Trait for device identification
pubtraitDevice: Clone + Send + Sync + 'static {/// Unique identifier for this device
fnid(&self)->usize;/// Check if two devices are the same
fnis_same(&self, other:&Self)->bool{self.id()== other.id()}/// Human-readable name
fnname(&self)-> String{format!("Device({})",self.id())}}