[][src]Trait weighty::ScaleDriver

pub trait ScaleDriver {
    fn read_kilograms(&self) -> Result<f64>;
fn read_pounds(&self) -> Result<f64>; }

A ScaleDriver takes care of decoding and making sense of the raw bytes coming from the HID scale.

Required methods

fn read_kilograms(&self) -> Result<f64>

Returns the number of kilograms-force currently bearing on the scale.

fn read_pounds(&self) -> Result<f64>

Returns the number of pounds of force currently bearing on the scale.

Loading content...

Implementors

Loading content...