[][src]Trait scaphandre::sensors::Sensor

pub trait Sensor {
    pub fn get_topology(&mut self) -> Box<Option<Topology>>;
pub fn generate_topology(&self) -> Result<Topology, Box<dyn Error>>; }

Sensor trait, the Sensor API.

Required methods

pub fn get_topology(&mut self) -> Box<Option<Topology>>[src]

pub fn generate_topology(&self) -> Result<Topology, Box<dyn Error>>[src]

Loading content...

Implementors

impl Sensor for PowercapRAPLSensor[src]

pub fn generate_topology(&self) -> Result<Topology, Box<dyn Error>>[src]

Creates a Topology instance.

pub fn get_topology(&mut self) -> Box<Option<Topology>>[src]

Instanciates Topology object if not existing and returns it

Loading content...