rsomeip/endpoint/
error.rs1use thiserror::Error;
2
3#[cfg(test)]
4mod tests;
5
6pub type Result<T> = std::result::Result<T, Error>;
7
8#[derive(Error, Debug)]
9pub enum Error {
10 #[error("operation failed unexpectedly: {0}")]
11 Failure(&'static str),
12 #[error(transparent)]
13 Io(#[from] std::io::Error),
14}