jacdac-rs 0.1.0

jacdac-rs is a library written entirely in Rust, with the aim of providing jacdac support for embedded development
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug)]
pub enum ServiceError {
    /// The service_command is not supported. The `str` help to contextualize error
    UnsupportedServiceCommand(&'static str),

    /// A payload is needed with this request
    NoPayloadInRequest,

    /// The payload doesn't contains enought data. The first parameter is the payload size, the second paramter is the expected size.
    InvalidPayloadSize(usize, usize),

    /// The event code is unknown to the service
    UnknownEventCode,
}