daemon_engine/error.rs
1/**
2 * rust-daemon
3 * Error types
4 *
5 * https://github.com/ryankurte/rust-daemon
6 * Copyright 2018 Ryan Kurte
7 */
8use std::io::Error as IoError;
9
10#[derive(Debug)]
11pub enum Error {
12 IoError(IoError),
13 GetPeerIdError(usize),
14}
15
16impl From<IoError> for Error {
17 fn from(e: IoError) -> Error {
18 return Error::IoError(e);
19 }
20}