peerrs_binarypack/
error.rs1use std::result;
2use std::string::FromUtf8Error;
3
4#[derive(Debug)]
5pub enum Error {
6 EndOfData,
7 StringParseError,
8}
9
10impl From<FromUtf8Error> for Error {
11 fn from(_error: FromUtf8Error) -> Self {
12 Error::StringParseError
13 }
14}
15
16pub type Result<T> = result::Result<T, Error>;