Skip to main content

ardupilot_binlog/
error.rs

1#[derive(Debug, thiserror::Error)]
2pub enum BinlogError {
3    #[error("I/O error: {0}")]
4    Io(#[from] std::io::Error),
5
6    #[error("invalid format character: {0}")]
7    InvalidFormat(char),
8
9    #[error("no FMT definition for message type {0}")]
10    UnknownType(u8),
11
12    #[error("unexpected end of data")]
13    UnexpectedEof,
14
15    #[error("payload too short for field type")]
16    PayloadTooShort,
17}