[][src]Trait libmedium::sensors::LowCrit

pub trait LowCrit<P: Raw>: SensorBase {
    fn read_lcrit(&self) -> Result<P, Error> { ... }
fn write_lcrit(&self, lcrit: P) -> Result<(), Error>
    where
        Self: WritableSensorBase
, { ... } }

Trait implemented by all sensors that can have a lcrit subfunction.

Provided methods

fn read_lcrit(&self) -> Result<P, Error>

Reads this sensor's lcrit value. Returns an error, if this sensor doesn't support the feature.

fn write_lcrit(&self, lcrit: P) -> Result<(), Error> where
    Self: WritableSensorBase

Writes this sensor's lcrit value. Returns an error, if this sensor doesn't support the feature.

Loading content...

Implementors

impl<S: CurrSensor> LowCrit<Current> for S[src]

impl<S: TempSensor> LowCrit<Temperature> for S[src]

impl<S: VoltSensor> LowCrit<Voltage> for S[src]

Loading content...