Trait rs485::Rs485 [] [src]

pub trait Rs485 {
    fn get_rs485_conf(&self) -> Result<SerialRs485>;
    fn set_rs485_conf(&self, conf: &SerialRs485) -> Result<()>;
    fn update_rs485_conf<F: FnOnce(&mut SerialRs485) -> ()>(
        &self,
        f: F
    ) -> Result<()>; }

Rs485 controls

A convenient trait for controlling Rs485 parameters.

Required Methods

Retrieves RS485 parameters from target

Sets RS485 parameters on target

Update RS485 configuration

Combines get_rs485_conf and set_rs485_conf through a closure

Implementors