[][src]Trait libmedium::sensors::Max

pub trait Max<P: Raw>: SensorBase {
    fn read_max(&self) -> Result<P, Error> { ... }
fn write_max(&self, max: P) -> Result<(), Error>
    where
        Self: WritableSensorBase
, { ... } }

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

Provided methods

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

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

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

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

Loading content...

Implementors

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

impl<S: FanSensor> Max<AngularVelocity> for S[src]

impl<S: PowerSensor> Max<Power> for S[src]

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

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

Loading content...