fennec-modbus 0.90.3

Modular Modbus client implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

use crate::protocol;

/// Modbus-over-TCP error.
#[must_use]
#[derive(Debug, Error)]
pub enum Error {
    /// Protocol-level error occurred.
    #[error("Modbus protocol error")]
    Protocol(#[from] protocol::Error),

    /// Payload size exceeded the maximum for TCP transport.
    #[error("payload size exceeded ({0} bytes)")]
    PayloadSizeExceeded(usize),
}