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
fn get_rs485_conf(&self) -> Result<SerialRs485>
Retrieves RS485 parameters from target
fn set_rs485_conf(&self, conf: &SerialRs485) -> Result<()>
Sets RS485 parameters on target
fn update_rs485_conf<F: FnOnce(&mut SerialRs485) -> ()>(
&self,
f: F
) -> Result<()>
&self,
f: F
) -> Result<()>
Update RS485 configuration
Combines get_rs485_conf
and set_rs485_conf
through a closure
Implementors
impl<T: AsRawFd> Rs485 for T