1
Fork 0
framed-rs/src/error.rs

20 lines
423 B
Rust

//! Representations of errors returned by this crate.
use std::io;
error_chain! {
foreign_links {
Io(io::Error);
}
errors {
CobsDecodeFailed {
description("COBS decode failed"),
display("COBS decode failed"),
}
EofDuringFrame {
description("end of file during a frame"),
display("end of file during a frame"),
}
}
}