event 0.2.1

A mulit-threaded event loop for Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use mio::MioError;
use std::error::FromError;

pub type EventResult<T> = Result<T, EventError>;

#[derive(Copy, Clone, Show, PartialEq)]
pub enum EventError {
    MioError(MioError)
}

impl FromError<MioError> for EventError {
    fn from_error(err: MioError) -> EventError {
        EventError::MioError(err)
    }
}