var searchIndex = {}; searchIndex["modbus"] = {"doc":"Modbus implementation in pure Rust.","items":[[4,"ExceptionCode","modbus","Modbus exception codes returned from the server.",null,null],[13,"IllegalFunction","","",0,null],[13,"IllegalDataAddress","","",0,null],[13,"IllegalDataValue","","",0,null],[13,"SlaveOrServerFailure","","",0,null],[13,"Acknowledge","","",0,null],[13,"SlaveOrServerBusy","","",0,null],[13,"NegativeAcknowledge","","",0,null],[13,"MemoryParity","","",0,null],[13,"NotDefined","","",0,null],[13,"GatewayPath","","",0,null],[13,"GatewayTarget","","",0,null],[4,"Error","","Combination of Modbus, IO and data corruption errors",null,null],[13,"Exception","","",1,null],[13,"Io","","",1,null],[13,"InvalidResponse","","",1,null],[13,"InvalidData","","",1,null],[13,"ParseCoilError","","",1,null],[4,"Coil","","Single bit status values, used in read or write coil functions",null,null],[13,"On","","",2,null],[13,"Off","","",2,null],[0,"scoped","","A set of objects which automatically change their register or coil value when they go out of scope",null,null],[3,"ScopedCoil","modbus::scoped","Auto object which modifies it's coil value depending on a given modification function if it\ngoes out of scope.",null,null],[3,"ScopedRegister","","Auto object which modifies it's register value depending on a given modification function if it\ngoes out of scope.",null,null],[4,"CoilDropFunction","","Action to perform when the `ScopedCoil` is dropped.",null,null],[13,"On","","Set the coil to `Coil::On`",3,null],[13,"Off","","Set the coil to `Coil::Off`",3,null],[13,"Toggle","","Toggle the current value.",3,null],[4,"RegisterDropFunction","","Action to perform when the `ScopedRegister` is dropped.",null,null],[13,"Zero","","Set the register to zero value",4,null],[13,"Increment","","Increment the current register value by 1",4,null],[13,"Decrement","","Decrement the current register value by 1",4,null],[13,"Value","","Set the register value to the given value.",4,null],[13,"Fun","","Execute the given function on the current value, setting the register with the result value.",4,null],[11,"drop","","",5,null],[11,"new","","Create a new `ScopedCoil` object with `address` and drop function when the object goes\nout of scope.",5,{"inputs":[{"name":"transport"},{"name":"u16"},{"name":"coildropfunction"}],"output":{"name":"result"}}],[11,"mut_transport","","",5,null],[11,"drop","","",6,null],[11,"new","","Create a new `ScopedRegister` object with `address` and drop function when the object goes\nout of scope.",6,{"inputs":[{"name":"transport"},{"name":"u16"},{"name":"registerdropfunction"}],"output":{"name":"result"}}],[11,"mut_transport","","",6,null],[0,"tcp","modbus","The Modbus TCP backend implements a Modbus variant used for communication over TCP/IPv4 networks.",null,null],[3,"Transport","modbus::tcp","Context object which holds state for all modbus operations.",null,null],[11,"new","","Create a new context context object and connect it to `addr` on modbus-tcp default\nport (502)",7,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"new_with_port","","Create a new context object and connect it to `addr` on port `port`",7,{"inputs":[{"name":"str"},{"name":"u16"}],"output":{"name":"result"}}],[11,"close","","",7,{"inputs":[{"name":"self"}],"output":{"name":"result"}}],[11,"read_coils","","Read `count` bits starting at address `addr`.",7,{"inputs":[{"name":"self"},{"name":"u16"},{"name":"u16"}],"output":{"name":"result"}}],[11,"read_discrete_inputs","","Read `count` input bits starting at address `addr`.",7,{"inputs":[{"name":"self"},{"name":"u16"},{"name":"u16"}],"output":{"name":"result"}}],[11,"read_holding_registers","","Read `count` 16bit registers starting at address `addr`.",7,{"inputs":[{"name":"self"},{"name":"u16"},{"name":"u16"}],"output":{"name":"result"}}],[11,"read_input_registers","","Read `count` 16bit input registers starting at address `addr`.",7,{"inputs":[{"name":"self"},{"name":"u16"},{"name":"u16"}],"output":{"name":"result"}}],[11,"write_single_coil","","Write a single coil (bit) to address `addr`.",7,{"inputs":[{"name":"self"},{"name":"u16"},{"name":"coil"}],"output":{"name":"result"}}],[11,"write_single_register","","Write a single 16bit register to address `addr`.",7,{"inputs":[{"name":"self"},{"name":"u16"},{"name":"u16"}],"output":{"name":"result"}}],[11,"write_multiple_coils","","Write a multiple coils (bits) starting at address `addr`.",7,null],[11,"write_multiple_registers","","Write a multiple 16bit registers starting at address `addr`.",7,null],[6,"Result","modbus","Result type used to nofify success or failure in communication",null,null],[8,"Client","","",null,null],[10,"read_discrete_inputs","","",8,null],[10,"read_coils","","",8,null],[10,"write_single_coil","","",8,null],[10,"write_multiple_coils","","",8,null],[10,"read_input_registers","","",8,null],[10,"read_holding_registers","","",8,null],[10,"write_single_register","","",8,null],[10,"write_multiple_registers","","",8,null],[11,"eq","","",0,null],[11,"fmt","","",0,null],[11,"from_i64","","",0,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",0,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"fmt","","",1,null],[11,"from","","",1,{"inputs":[{"name":"exceptioncode"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"decodingerror"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"encodingerror"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"eq","","",2,null],[11,"clone","","",2,null],[11,"fmt","","",2,null],[11,"from_str","","",2,{"inputs":[{"name":"str"}],"output":{"name":"result"}}]],"paths":[[4,"ExceptionCode"],[4,"Error"],[4,"Coil"],[4,"CoilDropFunction"],[4,"RegisterDropFunction"],[3,"ScopedCoil"],[3,"ScopedRegister"],[3,"Transport"],[8,"Client"]]}; initSearch(searchIndex);