Skip to main content

ClientCommon

Trait ClientCommon 

Source
pub trait ClientCommon: RequestErrorNotifier + TimeKeeper { }
Expand description

A marker trait that aggregates the necessary capabilities for a Modbus client application.

Any type implementing ClientCommon must be able to:

  1. Notify the application when a Modbus request fails (RequestErrorNotifier).
  2. Provide monotonic time in milliseconds to manage timeouts and retries (TimeKeeper).

This trait simplifies the generic bounds used throughout the ClientServices implementation.

Implementors§