pub struct Config {
pub discovery_addresses: Vec<u16>,
pub read_timeout: Option<Duration>,
pub max_read_length: u16,
pub write_timeout: Option<Duration>,
pub max_write_length: u16,
}Expand description
Client configuration
Fields§
§discovery_addresses: Vec<u16>Addresses to check for the SunS identifier (default: [0, 40000, 50000])
Some devices don’t work according to the specification and don’t respond anything on address 0.
read_timeout: Option<Duration>Timeout when reading registers
max_read_length: u16Maximum chunk size when reading registers
write_timeout: Option<Duration>Timeout when writing registers
max_write_length: u16Maximum chunk size when writing registers
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more