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