erin 0.1.0

A very simple I/O reactor that allows creating green thread-like processes.
Documentation

use std::{fmt, io};

#[derive(Debug)]
pub enum Error {
	Io(io::Error),
	RuntimeProcessDied,
	SetupFailed,
	Thread(Box<dyn std::any::Any + Send>),
}

impl fmt::Display for Error {
	fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
		fmt::Debug::fmt(self, f)
	}
}

impl From<io::Error> for Error {
	fn from(e: io::Error) -> Error { Error::Io(e) }
}

impl std::error::Error for Error {}