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.

fn mut_transport(&mut self) -> &mut Transport

Trait Implementations

impl<'a> Drop for ScopedCoil<'a>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more