Addressable

Trait Addressable 

Source
pub trait Addressable {
    // Required methods
    fn get_fan(
        &self,
        address: &Address,
    ) -> Result<Box<dyn FanSensor + Send + Sync>, Error>;
    fn get_pwm(
        &self,
        address: &Address,
    ) -> Result<Box<dyn WriteablePwmSensor + Send + Sync>, Error>;
    fn get_temp(
        &self,
        address: &Address,
    ) -> Result<Box<dyn TempSensor + Send + Sync>, Error>;
}

Required Methods§

Source

fn get_fan( &self, address: &Address, ) -> Result<Box<dyn FanSensor + Send + Sync>, Error>

Source

fn get_pwm( &self, address: &Address, ) -> Result<Box<dyn WriteablePwmSensor + Send + Sync>, Error>

Source

fn get_temp( &self, address: &Address, ) -> Result<Box<dyn TempSensor + Send + Sync>, Error>

Implementations on Foreign Types§

Source§

impl Addressable for Hwmons

Source§

fn get_fan( &self, address: &Address, ) -> Result<Box<dyn FanSensor + Send + Sync>, Error>

Source§

fn get_pwm( &self, address: &Address, ) -> Result<Box<dyn WriteablePwmSensor + Send + Sync>, Error>

Source§

fn get_temp( &self, address: &Address, ) -> Result<Box<dyn TempSensor + Send + Sync>, Error>

Implementors§