Trait DeviceInfo

Source
pub trait DeviceInfo {
    // Required methods
    fn name(&self) -> &'static str;
    fn id(&self) -> usize;
    fn compatible(&self) -> Vec<&'static str>;
    fn as_any(&self) -> &dyn Any;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn id(&self) -> usize

Source

fn compatible(&self) -> Vec<&'static str>

Source

fn as_any(&self) -> &dyn Any

Implementors§