jacdac_rs/service/
serivce_error.rs

1#[derive(Debug)]
2pub enum ServiceError {
3    /// The service_command is not supported. The `str` help to contextualize error
4    UnsupportedServiceCommand(&'static str),
5
6    /// A payload is needed with this request
7    NoPayloadInRequest,
8
9    /// The payload doesn't contains enought data. The first parameter is the payload size, the second paramter is the expected size.
10    InvalidPayloadSize(usize, usize),
11
12    /// The event code is unknown to the service
13    UnknownEventCode,
14}