nio 0.1.4

Async runtime for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::panic::{RefUnwindSafe, UnwindSafe};

fn _join_handle_is_unwind_safe() {
    _is_unwind_safe::<nio::JoinHandle<()>>();
}

fn _net_types_are_unwind_safe() {
    _is_unwind_safe::<nio::net::TcpListener>();
    _is_unwind_safe::<nio::net::TcpReader>();
    _is_unwind_safe::<nio::net::TcpWriter>();
    _is_unwind_safe::<nio::net::TcpConnection>();
    _is_unwind_safe::<nio::net::TcpStream>();
    _is_unwind_safe::<nio::net::UdpSocket>();
}

fn _is_unwind_safe<T: UnwindSafe + RefUnwindSafe>() {}