1 2 3 4 5 6 7 8 9 10
use crate::DeviceInfo; /// Traits shared by generic devices. pub trait DeviceTrait { /// Get the core information about a device. fn get_info(&self) -> DeviceInfo; /// Save the authentication information fn save_auth_pair(&mut self, id: u32, key: [u8; 16]); }