dalybms 0.1.4

Daly BMS protocol and commandline tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Represents the possible errors that can occur in the `dalybms_lib`.
#[derive(Debug, thiserror::Error, PartialEq)]
pub enum Error {
    /// Error indicating an invalid checksum in the received data.
    #[error("Invalid checksum")]
    CheckSumError,
    /// Error indicating an invalid size of the reply received from the BMS.
    #[error("Invalid reply size")]
    ReplySizeError,
    /// Error indicating that a frame was received out of order.
    #[error("Frame out of order")]
    FrameNoError,
}