1 2 3 4 5 6 7 8 9 10 11 12 13 14
use handle::*; use error::*; #[test] fn create_handle() { let _h = Handle::new().unwrap(); } #[test] fn bind_unbind() { let mut h = Handle::new().unwrap(); h.bind(ProtocolFamily::INET).unwrap(); h.unbind(ProtocolFamily::INET).unwrap(); }