tokio 0.2.10

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Assert option is some
macro_rules! assert_some {
    ($e:expr) => {{
        match $e {
            Some(v) => v,
            _ => panic!("expected some, was none"),
        }
    }};
}

/// Assert option is none
macro_rules! assert_none {
    ($e:expr) => {{
        if let Some(v) = $e {
            panic!("expected none, was {:?}", v);
        }
    }};
}