Struct modbus::scoped::ScopedCoil
[−]
[src]
pub struct ScopedCoil<'a> { // some fields omitted }
Auto object which modifies it's coil value depending on a given modification function if it goes out of scope.
Methods
impl<'a> ScopedCoil<'a>
[src]
fn new(transport: &mut Transport, address: u16, fun: CoilDropFunction) -> Result<ScopedCoil>
Create a new ScopedCoil
object with address
and drop function when the object goes
out of scope.