[][src]Trait libmedium::units::Raw

pub trait Raw: Sized {
    fn from_raw(raw: &str) -> Result<Self, Error>;
fn to_raw(&self) -> Cow<str>; }

Trait that needs to be implemented by all types that raw sensor strings should be converted into.

Required methods

fn from_raw(raw: &str) -> Result<Self, Error>

Converts a raw sensor string into a usable type.

fn to_raw(&self) -> Cow<str>

Converts self into a writable raw sensor string.

Loading content...

Implementations on Foreign Types

impl Raw for bool[src]

impl Raw for String[src]

impl Raw for Duration[src]

Loading content...

Implementors

impl Raw for PwmEnable[src]

impl Raw for PwmMode[src]

impl Raw for TempType[src]

impl Raw for Accuracy[src]

impl Raw for AngularVelocity[src]

impl Raw for Current[src]

impl Raw for Energy[src]

impl Raw for FanDivisor[src]

impl Raw for Frequency[src]

impl Raw for Humidity[src]

impl Raw for Power[src]

impl Raw for Pwm[src]

impl Raw for Temperature[src]

impl Raw for Voltage[src]

Loading content...