[][src]Struct morningstar::prostar_mppt::Connection

pub struct Connection(_);

Device connection.

Methods

impl Connection[src]

pub fn new(device: &str, modbus_id: u8) -> Result<Connection>[src]

pub fn read_coil(&self, coil: Coil) -> Result<bool>[src]

pub fn write_coil(&self, coil: Coil, val: bool) -> Result<()>[src]

pub fn stats(&self) -> Result<Stats>[src]

pub fn read_settings(&self) -> Result<Settings>[src]

pub fn write_settings(&self, settings: &Settings) -> Result<()>[src]

They will not take effect until the controller is reset, and if alarm_on_setting_change is false the controller will not work until a reset.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self