use super::profile::DeviceProfile;
pub trait Device: Clone + Send + Sync + 'static {
fn id(&self) -> usize;
fn is_same(&self, other: &Self) -> bool {
self.id() == other.id()
}
fn name(&self) -> String {
format!("Device({})", self.id())
}
fn profile(&self) -> DeviceProfile {
DeviceProfile::unknown("unknown")
}
}