[−][src]Trait libmedium::sensors::PowerSensor
Helper trait that sums up all functionality of a read-only power sensor.
Provided methods
pub fn read_accuracy(&self) -> Result<Ratio, Error>
[src]
Reads the accuracy subfunction of this power sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_cap(&self) -> Result<Power, Error>
[src]
Reads the cap subfunction of this power sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_cap_max(&self) -> Result<Power, Error>
[src]
Reads the cap_max subfunction of this power sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_cap_min(&self) -> Result<Power, Error>
[src]
Reads the cap_min subfunction of this power sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_cap_hyst(&self) -> Result<Power, Error>
[src]
Reads the cap_hyst subfunction of this power sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_average_interval(&self) -> Result<Duration, Error>
[src]
Reads the average_interval subfunction of this power sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_average_interval_max(&self) -> Result<Duration, Error>
[src]
Reads the average_interval_max subfunction of this power sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_average_interval_min(&self) -> Result<Duration, Error>
[src]
Reads the average_interval_min subfunction of this power sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_average_highest(&self) -> Result<Power, Error>
[src]
Reads the average_highest subfunction of this power sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_average_lowest(&self) -> Result<Power, Error>
[src]
Reads the average_lowest subfunction of this power sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_average_max(&self) -> Result<Power, Error>
[src]
Reads the average_max subfunction of this power sensor. Returns an error, if this sensor doesn't support the subfunction.
pub fn read_average_min(&self) -> Result<Power, Error>
[src]
Reads the average_min subfunction of this power sensor. Returns an error, if this sensor doesn't support the subfunction.