Guest User

Untitled

a guest
Apr 25th, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 84.38 KB | None | 0 0
  1. cargo +nightly build --release --target=wasm32-unknown-unknown
  2. Compiling net2 v0.2.32
  3. Compiling time v0.1.39
  4. Compiling base64 v0.9.0
  5. Compiling wasm-bindgen-shared v0.2.3
  6. Compiling serde_json v1.0.15
  7. Compiling num-integer v0.1.36
  8. Compiling unicase v1.4.2
  9. Compiling unicase v2.1.0
  10. Compiling log v0.3.9
  11. error[E0432]: unresolved import `sys`
  12. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/tcp.rs:18:5
  13. |
  14. 18 | use sys::c;
  15. | ^^^ Maybe a missing `extern crate sys;`?
  16.  
  17. error[E0432]: unresolved import `sys`
  18. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/udp.rs:18:5
  19. |
  20. 18 | use sys::c;
  21. | ^^^ Maybe a missing `extern crate sys;`?
  22.  
  23. error[E0432]: unresolved import `sys`
  24. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/socket.rs:20:5
  25. |
  26. 20 | use sys;
  27. | ^^^ no `sys` in the root
  28.  
  29. error[E0432]: unresolved import `sys`
  30. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/socket.rs:21:5
  31. |
  32. 21 | use sys::c;
  33. | ^^^ Maybe a missing `extern crate sys;`?
  34.  
  35. error[E0433]: failed to resolve. Maybe a missing `extern crate sys;`?
  36. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/socket.rs:34:13
  37. |
  38. 34 | use sys::c::socklen_t as len_t;
  39. | ^^^ Maybe a missing `extern crate sys;`?
  40.  
  41. error[E0432]: unresolved import `sys`
  42. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:19:5
  43. |
  44. 19 | use sys;
  45. | ^^^ no `sys` in the root
  46.  
  47. error[E0432]: unresolved import `sys`
  48. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:20:5
  49. |
  50. 20 | use sys::c;
  51. | ^^^ Maybe a missing `extern crate sys;`?
  52.  
  53. error[E0432]: unresolved import `self::inner`
  54. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.39/src/sys.rs:3:15
  55. |
  56. 3 | pub use self::inner::*;
  57. | ^^^^^ Could not find `inner` in `self`
  58.  
  59. error[E0433]: failed to resolve. Could not find `SteadyTime` in `sys`
  60. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.39/src/lib.rs:247:25
  61. |
  62. 247 | SteadyTime(sys::SteadyTime::now())
  63. | ^^^^^^^^^^ Could not find `SteadyTime` in `sys`
  64.  
  65. error[E0425]: cannot find function `get_time` in module `sys`
  66. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.39/src/lib.rs:150:28
  67. |
  68. 150 | let (sec, nsec) = sys::get_time();
  69. | ^^^^^^^^ not found in `sys`
  70. help: possible candidate is found in another module, you can import it into scope
  71. |
  72. 46 | use get_time;
  73. |
  74.  
  75. error[E0425]: cannot find function `get_precise_ns` in module `sys`
  76. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.39/src/lib.rs:160:10
  77. |
  78. 160 | sys::get_precise_ns()
  79. | ^^^^^^^^^^^^^^ not found in `sys`
  80.  
  81. error[E0412]: cannot find type `SteadyTime` in module `sys`
  82. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.39/src/lib.rs:242:28
  83. |
  84. 242 | pub struct SteadyTime(sys::SteadyTime);
  85. | ^^^^^^^^^^ not found in `sys`
  86. help: possible candidate is found in another module, you can import it into scope
  87. |
  88. 46 | use SteadyTime;
  89. |
  90.  
  91. error[E0425]: cannot find function `time_to_utc_tm` in module `sys`
  92. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.39/src/lib.rs:404:10
  93. |
  94. 404 | sys::time_to_utc_tm(sec, &mut tm);
  95. | ^^^^^^^^^^^^^^ not found in `sys`
  96.  
  97. error[E0425]: cannot find function `time_to_local_tm` in module `sys`
  98. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.39/src/lib.rs:418:10
  99. |
  100. 418 | sys::time_to_local_tm(sec, &mut tm);
  101. | ^^^^^^^^^^^^^^^^ not found in `sys`
  102.  
  103. error[E0425]: cannot find function `utc_tm_to_time` in module `sys`
  104. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.39/src/lib.rs:432:23
  105. |
  106. 432 | 0 => sys::utc_tm_to_time(self),
  107. | ^^^^^^^^^^^^^^ not found in `sys`
  108.  
  109. error[E0425]: cannot find function `local_tm_to_time` in module `sys`
  110. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.39/src/lib.rs:433:23
  111. |
  112. 433 | _ => sys::local_tm_to_time(self)
  113. | ^^^^^^^^^^^^^^^^ not found in `sys`
  114.  
  115. Compiling tokio-io v0.1.6
  116. error[E0204]: the trait `Copy` may not be implemented for this type
  117. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.39/src/lib.rs:241:17
  118. |
  119. 241 | #[derive(Clone, Copy, PartialOrd, Ord, PartialEq, Eq, Debug)]
  120. | ^^^^
  121. 242 | pub struct SteadyTime(sys::SteadyTime);
  122. | ---------------- this field does not implement `Copy`
  123.  
  124. error: aborting due to 10 previous errors
  125.  
  126. Some errors occurred: E0204, E0412, E0425, E0432, E0433.
  127. For more information about an error, try `rustc --explain E0204`.
  128. error: Could not compile `time`.
  129. warning: build failed, waiting for other jobs to finish...
  130. error[E0412]: cannot find type `c_int` in this scope
  131. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/socket.rs:28:24
  132. |
  133. 28 | pub fn new(family: c_int, ty: c_int) -> io::Result<Socket> {
  134. | ^^^^^ not found in this scope
  135. help: possible candidate is found in another module, you can import it into scope
  136. |
  137. 11 | use std::os::raw::c_int;
  138. |
  139.  
  140. error[E0412]: cannot find type `c_int` in this scope
  141. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/socket.rs:28:35
  142. |
  143. 28 | pub fn new(family: c_int, ty: c_int) -> io::Result<Socket> {
  144. | ^^^^^ not found in this scope
  145. help: possible candidate is found in another module, you can import it into scope
  146. |
  147. 11 | use std::os::raw::c_int;
  148. |
  149.  
  150. error[E0412]: cannot find type `len_t` in this scope
  151. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/socket.rs:40:58
  152. |
  153. 40 | ::cvt(c::bind(self.inner.raw(), addr, len as len_t)).map(|_| ())
  154. | ^^^^^ not found in this scope
  155.  
  156. error[E0412]: cannot find type `c_int` in this scope
  157. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/socket.rs:104:32
  158. |
  159. 104 | match storage.ss_family as c_int {
  160. | ^^^^^ not found in this scope
  161. help: possible candidate is found in another module, you can import it into scope
  162. |
  163. 11 | use std::os::raw::c_int;
  164. |
  165.  
  166. error[E0412]: cannot find type `Socket` in this scope
  167. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:60:31
  168. |
  169. 60 | pub fn set_opt<T: Copy>(sock: Socket, opt: c_int, val: c_int,
  170. | ^^^^^^ not found in this scope
  171. help: possible candidate is found in another module, you can import it into scope
  172. |
  173. 13 | use socket::Socket;
  174. |
  175.  
  176. error[E0412]: cannot find type `c_int` in this scope
  177. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:60:44
  178. |
  179. 60 | pub fn set_opt<T: Copy>(sock: Socket, opt: c_int, val: c_int,
  180. | ^^^^^ not found in this scope
  181. help: possible candidate is found in another module, you can import it into scope
  182. |
  183. 13 | use std::os::raw::c_int;
  184. |
  185.  
  186. error[E0412]: cannot find type `c_int` in this scope
  187. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:60:56
  188. |
  189. 60 | pub fn set_opt<T: Copy>(sock: Socket, opt: c_int, val: c_int,
  190. | ^^^^^ not found in this scope
  191. help: possible candidate is found in another module, you can import it into scope
  192. |
  193. 13 | use std::os::raw::c_int;
  194. |
  195.  
  196. error[E0412]: cannot find type `c_void` in this scope
  197. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:63:54
  198. |
  199. 63 | let payload = &payload as *const T as *const c_void;
  200. | ^^^^^^ not found in this scope
  201. help: possible candidate is found in another module, you can import it into scope
  202. |
  203. 13 | use std::os::raw::c_void;
  204. |
  205.  
  206. error[E0425]: cannot find function `setsockopt` in this scope
  207. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:64:20
  208. |
  209. 64 | try!(::cvt(setsockopt(sock, opt, val, payload as *const _,
  210. | ^^^^^^^^^^ not found in this scope
  211.  
  212. error[E0412]: cannot find type `socklen_t` in this scope
  213. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:65:54
  214. |
  215. 65 | mem::size_of::<T>() as socklen_t)));
  216. | ^^^^^^^^^ not found in this scope
  217.  
  218. error[E0412]: cannot find type `Socket` in this scope
  219. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:70:31
  220. |
  221. 70 | pub fn get_opt<T: Copy>(sock: Socket, opt: c_int, val: c_int) -> io::Result<T> {
  222. | ^^^^^^ not found in this scope
  223. help: possible candidate is found in another module, you can import it into scope
  224. |
  225. 13 | use socket::Socket;
  226. |
  227.  
  228. error[E0412]: cannot find type `c_int` in this scope
  229. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:70:44
  230. |
  231. 70 | pub fn get_opt<T: Copy>(sock: Socket, opt: c_int, val: c_int) -> io::Result<T> {
  232. | ^^^^^ not found in this scope
  233. help: possible candidate is found in another module, you can import it into scope
  234. |
  235. 13 | use std::os::raw::c_int;
  236. |
  237.  
  238. error[E0412]: cannot find type `c_int` in this scope
  239. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:70:56
  240. |
  241. 70 | pub fn get_opt<T: Copy>(sock: Socket, opt: c_int, val: c_int) -> io::Result<T> {
  242. | ^^^^^ not found in this scope
  243. help: possible candidate is found in another module, you can import it into scope
  244. |
  245. 13 | use std::os::raw::c_int;
  246. |
  247.  
  248. error[E0412]: cannot find type `socklen_t` in this scope
  249. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:73:46
  250. |
  251. 73 | let mut len = mem::size_of::<T>() as socklen_t;
  252. | ^^^^^^^^^ not found in this scope
  253.  
  254. error[E0425]: cannot find function `getsockopt` in this scope
  255. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:74:20
  256. |
  257. 74 | try!(::cvt(getsockopt(sock, opt, val,
  258. | ^^^^^^^^^^ not found in this scope
  259.  
  260. error[E0412]: cannot find type `Socket` in this scope
  261. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:635:26
  262. |
  263. 635 | fn as_sock(&self) -> Socket;
  264. | ^^^^^^ not found in this scope
  265. help: possible candidate is found in another module, you can import it into scope
  266. |
  267. 13 | use socket::Socket;
  268. |
  269.  
  270. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  271. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:663:33
  272. |
  273. 663 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF, size as c_int)
  274. | ^^^^^^^^^^ not found in this scope
  275.  
  276. error[E0425]: cannot find value `SO_RCVBUF` in this scope
  277. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:663:45
  278. |
  279. 663 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF, size as c_int)
  280. | ^^^^^^^^^ not found in this scope
  281.  
  282. error[E0412]: cannot find type `c_int` in this scope
  283. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:663:64
  284. |
  285. 663 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF, size as c_int)
  286. | ^^^^^ not found in this scope
  287. help: possible candidate is found in another module, you can import it into scope
  288. |
  289. 13 | use std::os::raw::c_int;
  290. |
  291.  
  292. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  293. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:667:33
  294. |
  295. 667 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF).map(int2usize)
  296. | ^^^^^^^^^^ not found in this scope
  297.  
  298. error[E0425]: cannot find value `SO_RCVBUF` in this scope
  299. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:667:45
  300. |
  301. 667 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF).map(int2usize)
  302. | ^^^^^^^^^ not found in this scope
  303.  
  304. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  305. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:671:33
  306. |
  307. 671 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF, size as c_int)
  308. | ^^^^^^^^^^ not found in this scope
  309.  
  310. error[E0425]: cannot find value `SO_SNDBUF` in this scope
  311. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:671:45
  312. |
  313. 671 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF, size as c_int)
  314. | ^^^^^^^^^ not found in this scope
  315.  
  316. error[E0412]: cannot find type `c_int` in this scope
  317. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:671:64
  318. |
  319. 671 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF, size as c_int)
  320. | ^^^^^ not found in this scope
  321. help: possible candidate is found in another module, you can import it into scope
  322. |
  323. 13 | use std::os::raw::c_int;
  324. |
  325.  
  326. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  327. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:675:33
  328. |
  329. 675 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF).map(int2usize)
  330. | ^^^^^^^^^^ not found in this scope
  331.  
  332. error[E0425]: cannot find value `SO_SNDBUF` in this scope
  333. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:675:45
  334. |
  335. 675 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF).map(int2usize)
  336. | ^^^^^^^^^ not found in this scope
  337.  
  338. error[E0425]: cannot find function `v` in this scope
  339. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:679:33
  340. |
  341. 679 | set_opt(self.as_sock(), v(IPPROTO_TCP), TCP_NODELAY,
  342. | ^ not found in this scope
  343.  
  344. error[E0425]: cannot find value `IPPROTO_TCP` in this scope
  345. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:679:35
  346. |
  347. 679 | set_opt(self.as_sock(), v(IPPROTO_TCP), TCP_NODELAY,
  348. | ^^^^^^^^^^^ not found in this scope
  349.  
  350. error[E0425]: cannot find value `TCP_NODELAY` in this scope
  351. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:679:49
  352. |
  353. 679 | set_opt(self.as_sock(), v(IPPROTO_TCP), TCP_NODELAY,
  354. | ^^^^^^^^^^^ not found in this scope
  355.  
  356. error[E0412]: cannot find type `c_int` in this scope
  357. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:680:27
  358. |
  359. 680 | nodelay as c_int)
  360. | ^^^^^ not found in this scope
  361. help: possible candidate is found in another module, you can import it into scope
  362. |
  363. 13 | use std::os::raw::c_int;
  364. |
  365.  
  366. error[E0425]: cannot find function `v` in this scope
  367. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:683:33
  368. |
  369. 683 | get_opt(self.as_sock(), v(IPPROTO_TCP), TCP_NODELAY)
  370. | ^ not found in this scope
  371.  
  372. error[E0425]: cannot find value `IPPROTO_TCP` in this scope
  373. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:683:35
  374. |
  375. 683 | get_opt(self.as_sock(), v(IPPROTO_TCP), TCP_NODELAY)
  376. | ^^^^^^^^^^^ not found in this scope
  377.  
  378. error[E0425]: cannot find value `TCP_NODELAY` in this scope
  379. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:683:49
  380. |
  381. 683 | get_opt(self.as_sock(), v(IPPROTO_TCP), TCP_NODELAY)
  382. | ^^^^^^^^^^^ not found in this scope
  383.  
  384. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  385. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:767:33
  386. |
  387. 767 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO,
  388. | ^^^^^^^^^^ not found in this scope
  389.  
  390. error[E0425]: cannot find value `SO_RCVTIMEO` in this scope
  391. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:767:45
  392. |
  393. 767 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO,
  394. | ^^^^^^^^^^^ not found in this scope
  395.  
  396. error[E0425]: cannot find function `ms2timeout` in this scope
  397. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:768:16
  398. |
  399. 768 | ms2timeout(dur))
  400. | ^^^^^^^^^^ not found in this scope
  401.  
  402. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  403. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:772:33
  404. |
  405. 772 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO)
  406. | ^^^^^^^^^^ not found in this scope
  407.  
  408. error[E0425]: cannot find value `SO_RCVTIMEO` in this scope
  409. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:772:45
  410. |
  411. 772 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO)
  412. | ^^^^^^^^^^^ not found in this scope
  413.  
  414. error[E0425]: cannot find value `timeout2ms` in this scope
  415. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:773:18
  416. |
  417. 773 | .map(timeout2ms)
  418. | ^^^^^^^^^^ not found in this scope
  419.  
  420. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  421. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:777:33
  422. |
  423. 777 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO,
  424. | ^^^^^^^^^^ not found in this scope
  425.  
  426. error[E0425]: cannot find value `SO_SNDTIMEO` in this scope
  427. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:777:45
  428. |
  429. 777 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO,
  430. | ^^^^^^^^^^^ not found in this scope
  431.  
  432. error[E0425]: cannot find function `ms2timeout` in this scope
  433. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:778:16
  434. |
  435. 778 | ms2timeout(dur))
  436. | ^^^^^^^^^^ not found in this scope
  437.  
  438. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  439. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:782:33
  440. |
  441. 782 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO)
  442. | ^^^^^^^^^^ not found in this scope
  443.  
  444. error[E0425]: cannot find value `SO_SNDTIMEO` in this scope
  445. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:782:45
  446. |
  447. 782 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO)
  448. | ^^^^^^^^^^^ not found in this scope
  449.  
  450. error[E0425]: cannot find value `timeout2ms` in this scope
  451. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:783:18
  452. |
  453. 783 | .map(timeout2ms)
  454. | ^^^^^^^^^^ not found in this scope
  455.  
  456. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  457. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:803:33
  458. |
  459. 803 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  460. | ^^^^^^^^^^ not found in this scope
  461.  
  462. error[E0425]: cannot find value `IP_TTL` in this scope
  463. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:803:45
  464. |
  465. 803 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  466. | ^^^^^^ not found in this scope
  467.  
  468. error[E0412]: cannot find type `c_int` in this scope
  469. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:803:60
  470. |
  471. 803 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  472. | ^^^^^ not found in this scope
  473. help: possible candidate is found in another module, you can import it into scope
  474. |
  475. 13 | use std::os::raw::c_int;
  476. |
  477.  
  478. error[E0412]: cannot find type `c_int` in this scope
  479. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:807:19
  480. |
  481. 807 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
  482. | ^^^^^ not found in this scope
  483. help: possible candidate is found in another module, you can import it into scope
  484. |
  485. 13 | use std::os::raw::c_int;
  486. |
  487.  
  488. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  489. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:807:42
  490. |
  491. 807 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
  492. | ^^^^^^^^^^ not found in this scope
  493.  
  494. error[E0425]: cannot find value `IP_TTL` in this scope
  495. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:807:54
  496. |
  497. 807 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
  498. | ^^^^^^ not found in this scope
  499.  
  500. error[E0425]: cannot find function `v` in this scope
  501. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:812:33
  502. |
  503. 812 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  504. | ^ not found in this scope
  505.  
  506. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  507. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:812:35
  508. |
  509. 812 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  510. | ^^^^^^^^^^^^ not found in this scope
  511.  
  512. error[E0425]: cannot find value `IPV6_V6ONLY` in this scope
  513. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:812:50
  514. |
  515. 812 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  516. | ^^^^^^^^^^^ not found in this scope
  517.  
  518. error[E0412]: cannot find type `c_int` in this scope
  519. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:812:74
  520. |
  521. 812 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  522. | ^^^^^ not found in this scope
  523. help: possible candidate is found in another module, you can import it into scope
  524. |
  525. 13 | use std::os::raw::c_int;
  526. |
  527.  
  528. error[E0425]: cannot find function `v` in this scope
  529. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:816:33
  530. |
  531. 816 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
  532. | ^ not found in this scope
  533.  
  534. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  535. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:816:35
  536. |
  537. 816 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
  538. | ^^^^^^^^^^^^ not found in this scope
  539.  
  540. error[E0425]: cannot find value `IPV6_V6ONLY` in this scope
  541. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:816:50
  542. |
  543. 816 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
  544. | ^^^^^^^^^^^ not found in this scope
  545.  
  546. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  547. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:824:33
  548. |
  549. 824 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
  550. | ^^^^^^^^^^ not found in this scope
  551.  
  552. error[E0425]: cannot find value `SO_ERROR` in this scope
  553. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:824:45
  554. |
  555. 824 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
  556. | ^^^^^^^^ not found in this scope
  557.  
  558. error[E0425]: cannot find function `set_nonblocking` in this scope
  559. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:828:9
  560. |
  561. 828 | set_nonblocking(self.as_sock(), nonblocking)
  562. | ^^^^^^^^^^^^^^^ help: try: `self.set_nonblocking`
  563.  
  564. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  565. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:832:33
  566. |
  567. 832 | set_opt(self.as_sock(), SOL_SOCKET, SO_LINGER, dur2linger(dur))
  568. | ^^^^^^^^^^ not found in this scope
  569.  
  570. error[E0425]: cannot find value `SO_LINGER` in this scope
  571. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:832:45
  572. |
  573. 832 | set_opt(self.as_sock(), SOL_SOCKET, SO_LINGER, dur2linger(dur))
  574. | ^^^^^^^^^ not found in this scope
  575.  
  576. error[E0425]: cannot find function `dur2linger` in this scope
  577. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:832:56
  578. |
  579. 832 | set_opt(self.as_sock(), SOL_SOCKET, SO_LINGER, dur2linger(dur))
  580. | ^^^^^^^^^^ not found in this scope
  581.  
  582. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  583. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:836:33
  584. |
  585. 836 | get_opt(self.as_sock(), SOL_SOCKET, SO_LINGER).map(linger2dur)
  586. | ^^^^^^^^^^ not found in this scope
  587.  
  588. error[E0425]: cannot find value `SO_LINGER` in this scope
  589. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:836:45
  590. |
  591. 836 | get_opt(self.as_sock(), SOL_SOCKET, SO_LINGER).map(linger2dur)
  592. | ^^^^^^^^^ not found in this scope
  593.  
  594. error[E0412]: cannot find type `linger` in this scope
  595. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:875:27
  596. |
  597. 875 | fn linger2dur(linger_opt: linger) -> Option<Duration> {
  598. | ^^^^^^ not found in this scope
  599.  
  600. error[E0412]: cannot find type `c_int` in this scope
  601. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:918:20
  602. |
  603. 918 | pub fn int2bool(n: c_int) -> bool {
  604. | ^^^^^ not found in this scope
  605. help: possible candidate is found in another module, you can import it into scope
  606. |
  607. 13 | use std::os::raw::c_int;
  608. |
  609.  
  610. error[E0412]: cannot find type `c_int` in this scope
  611. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:922:21
  612. |
  613. 922 | pub fn int2usize(n: c_int) -> usize {
  614. | ^^^^^ not found in this scope
  615. help: possible candidate is found in another module, you can import it into scope
  616. |
  617. 13 | use std::os::raw::c_int;
  618. |
  619.  
  620. error[E0412]: cannot find type `c_int` in this scope
  621. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:927:19
  622. |
  623. 927 | pub fn int2err(n: c_int) -> Option<io::Error> {
  624. | ^^^^^ not found in this scope
  625. help: possible candidate is found in another module, you can import it into scope
  626. |
  627. 13 | use std::os::raw::c_int;
  628. |
  629.  
  630. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  631. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:938:33
  632. |
  633. 938 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF, size as c_int)
  634. | ^^^^^^^^^^ not found in this scope
  635.  
  636. error[E0425]: cannot find value `SO_RCVBUF` in this scope
  637. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:938:45
  638. |
  639. 938 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF, size as c_int)
  640. | ^^^^^^^^^ not found in this scope
  641.  
  642. error[E0412]: cannot find type `c_int` in this scope
  643. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:938:64
  644. |
  645. 938 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF, size as c_int)
  646. | ^^^^^ not found in this scope
  647. help: possible candidate is found in another module, you can import it into scope
  648. |
  649. 13 | use std::os::raw::c_int;
  650. |
  651.  
  652. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  653. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:942:33
  654. |
  655. 942 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF).map(int2usize)
  656. | ^^^^^^^^^^ not found in this scope
  657.  
  658. error[E0425]: cannot find value `SO_RCVBUF` in this scope
  659. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:942:45
  660. |
  661. 942 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF).map(int2usize)
  662. | ^^^^^^^^^ not found in this scope
  663.  
  664. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  665. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:946:33
  666. |
  667. 946 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF, size as c_int)
  668. | ^^^^^^^^^^ not found in this scope
  669.  
  670. error[E0425]: cannot find value `SO_SNDBUF` in this scope
  671. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:946:45
  672. |
  673. 946 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF, size as c_int)
  674. | ^^^^^^^^^ not found in this scope
  675.  
  676. error[E0412]: cannot find type `c_int` in this scope
  677. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:946:64
  678. |
  679. 946 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF, size as c_int)
  680. | ^^^^^ not found in this scope
  681. help: possible candidate is found in another module, you can import it into scope
  682. |
  683. 13 | use std::os::raw::c_int;
  684. |
  685.  
  686. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  687. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:950:33
  688. |
  689. 950 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF).map(int2usize)
  690. | ^^^^^^^^^^ not found in this scope
  691.  
  692. error[E0425]: cannot find value `SO_SNDBUF` in this scope
  693. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:950:45
  694. |
  695. 950 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF).map(int2usize)
  696. | ^^^^^^^^^ not found in this scope
  697.  
  698. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  699. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:954:33
  700. |
  701. 954 | set_opt(self.as_sock(), SOL_SOCKET, SO_BROADCAST,
  702. | ^^^^^^^^^^ not found in this scope
  703.  
  704. error[E0425]: cannot find value `SO_BROADCAST` in this scope
  705. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:954:45
  706. |
  707. 954 | set_opt(self.as_sock(), SOL_SOCKET, SO_BROADCAST,
  708. | ^^^^^^^^^^^^ not found in this scope
  709.  
  710. error[E0412]: cannot find type `c_int` in this scope
  711. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:955:29
  712. |
  713. 955 | broadcast as c_int)
  714. | ^^^^^ not found in this scope
  715. help: possible candidate is found in another module, you can import it into scope
  716. |
  717. 13 | use std::os::raw::c_int;
  718. |
  719.  
  720. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  721. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:958:33
  722. |
  723. 958 | get_opt(self.as_sock(), SOL_SOCKET, SO_BROADCAST)
  724. | ^^^^^^^^^^ not found in this scope
  725.  
  726. error[E0425]: cannot find value `SO_BROADCAST` in this scope
  727. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:958:45
  728. |
  729. 958 | get_opt(self.as_sock(), SOL_SOCKET, SO_BROADCAST)
  730. | ^^^^^^^^^^^^ not found in this scope
  731.  
  732. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  733. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:962:33
  734. |
  735. 962 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_LOOP,
  736. | ^^^^^^^^^^ not found in this scope
  737.  
  738. error[E0425]: cannot find value `IP_MULTICAST_LOOP` in this scope
  739. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:962:45
  740. |
  741. 962 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_LOOP,
  742. | ^^^^^^^^^^^^^^^^^ not found in this scope
  743.  
  744. error[E0412]: cannot find type `c_int` in this scope
  745. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:963:37
  746. |
  747. 963 | multicast_loop_v4 as c_int)
  748. | ^^^^^ not found in this scope
  749. help: possible candidate is found in another module, you can import it into scope
  750. |
  751. 13 | use std::os::raw::c_int;
  752. |
  753.  
  754. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  755. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:966:33
  756. |
  757. 966 | get_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_LOOP)
  758. | ^^^^^^^^^^ not found in this scope
  759.  
  760. error[E0425]: cannot find value `IP_MULTICAST_LOOP` in this scope
  761. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:966:45
  762. |
  763. 966 | get_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_LOOP)
  764. | ^^^^^^^^^^^^^^^^^ not found in this scope
  765.  
  766. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  767. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:971:33
  768. |
  769. 971 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_TTL,
  770. | ^^^^^^^^^^ not found in this scope
  771.  
  772. error[E0425]: cannot find value `IP_MULTICAST_TTL` in this scope
  773. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:971:45
  774. |
  775. 971 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_TTL,
  776. | ^^^^^^^^^^^^^^^^ not found in this scope
  777.  
  778. error[E0412]: cannot find type `c_int` in this scope
  779. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:972:36
  780. |
  781. 972 | multicast_ttl_v4 as c_int)
  782. | ^^^^^ not found in this scope
  783. help: possible candidate is found in another module, you can import it into scope
  784. |
  785. 13 | use std::os::raw::c_int;
  786. |
  787.  
  788. error[E0412]: cannot find type `c_int` in this scope
  789. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:976:19
  790. |
  791. 976 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_MULTICAST_TTL)
  792. | ^^^^^ not found in this scope
  793. help: possible candidate is found in another module, you can import it into scope
  794. |
  795. 13 | use std::os::raw::c_int;
  796. |
  797.  
  798. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  799. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:976:42
  800. |
  801. 976 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_MULTICAST_TTL)
  802. | ^^^^^^^^^^ not found in this scope
  803.  
  804. error[E0425]: cannot find value `IP_MULTICAST_TTL` in this scope
  805. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:976:54
  806. |
  807. 976 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_MULTICAST_TTL)
  808. | ^^^^^^^^^^^^^^^^ not found in this scope
  809.  
  810. error[E0425]: cannot find function `v` in this scope
  811. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:981:33
  812. |
  813. 981 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS,
  814. | ^ not found in this scope
  815.  
  816. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  817. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:981:35
  818. |
  819. 981 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS,
  820. | ^^^^^^^^^^^^ not found in this scope
  821.  
  822. error[E0425]: cannot find value `IPV6_MULTICAST_HOPS` in this scope
  823. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:981:50
  824. |
  825. 981 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS,
  826. | ^^^^^^^^^^^^^^^^^^^ not found in this scope
  827.  
  828. error[E0412]: cannot find type `c_int` in this scope
  829. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:982:24
  830. |
  831. 982 | hops as c_int)
  832. | ^^^^^ not found in this scope
  833. help: possible candidate is found in another module, you can import it into scope
  834. |
  835. 13 | use std::os::raw::c_int;
  836. |
  837.  
  838. error[E0412]: cannot find type `c_int` in this scope
  839. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:986:19
  840. |
  841. 986 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS)
  842. | ^^^^^ not found in this scope
  843. help: possible candidate is found in another module, you can import it into scope
  844. |
  845. 13 | use std::os::raw::c_int;
  846. |
  847.  
  848. error[E0425]: cannot find function `v` in this scope
  849. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:986:42
  850. |
  851. 986 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS)
  852. | ^ not found in this scope
  853.  
  854. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  855. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:986:44
  856. |
  857. 986 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS)
  858. | ^^^^^^^^^^^^ not found in this scope
  859.  
  860. error[E0425]: cannot find value `IPV6_MULTICAST_HOPS` in this scope
  861. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:986:59
  862. |
  863. 986 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS)
  864. | ^^^^^^^^^^^^^^^^^^^ not found in this scope
  865.  
  866. error[E0425]: cannot find function `v` in this scope
  867. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:991:33
  868. |
  869. 991 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_LOOP,
  870. | ^ not found in this scope
  871.  
  872. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  873. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:991:35
  874. |
  875. 991 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_LOOP,
  876. | ^^^^^^^^^^^^ not found in this scope
  877.  
  878. error[E0425]: cannot find value `IPV6_MULTICAST_LOOP` in this scope
  879. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:991:50
  880. |
  881. 991 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_LOOP,
  882. | ^^^^^^^^^^^^^^^^^^^ not found in this scope
  883.  
  884. error[E0412]: cannot find type `c_int` in this scope
  885. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:992:37
  886. |
  887. 992 | multicast_loop_v6 as c_int)
  888. | ^^^^^ not found in this scope
  889. help: possible candidate is found in another module, you can import it into scope
  890. |
  891. 13 | use std::os::raw::c_int;
  892. |
  893.  
  894. error[E0425]: cannot find function `v` in this scope
  895. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:995:33
  896. |
  897. 995 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_LOOP)
  898. | ^ not found in this scope
  899.  
  900. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  901. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:995:35
  902. |
  903. 995 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_LOOP)
  904. | ^^^^^^^^^^^^ not found in this scope
  905.  
  906. error[E0425]: cannot find value `IPV6_MULTICAST_LOOP` in this scope
  907. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:995:50
  908. |
  909. 995 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_LOOP)
  910. | ^^^^^^^^^^^^^^^^^^^ not found in this scope
  911.  
  912. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  913. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1000:33
  914. |
  915. 1000 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_IF, ip2in_addr(interface))
  916. | ^^^^^^^^^^ not found in this scope
  917.  
  918. error[E0425]: cannot find value `IP_MULTICAST_IF` in this scope
  919. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1000:45
  920. |
  921. 1000 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_IF, ip2in_addr(interface))
  922. | ^^^^^^^^^^^^^^^ not found in this scope
  923.  
  924. error[E0425]: cannot find function `ip2in_addr` in this scope
  925. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1000:62
  926. |
  927. 1000 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_IF, ip2in_addr(interface))
  928. | ^^^^^^^^^^ did you mean `ip2in6_addr`?
  929.  
  930. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  931. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1004:33
  932. |
  933. 1004 | get_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_IF).map(in_addr2ip)
  934. | ^^^^^^^^^^ not found in this scope
  935.  
  936. error[E0425]: cannot find value `IP_MULTICAST_IF` in this scope
  937. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1004:45
  938. |
  939. 1004 | get_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_IF).map(in_addr2ip)
  940. | ^^^^^^^^^^^^^^^ not found in this scope
  941.  
  942. error[E0425]: cannot find function `v` in this scope
  943. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1008:33
  944. |
  945. 1008 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF, to_ipv6mr_interface(interface))
  946. | ^ not found in this scope
  947.  
  948. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  949. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1008:35
  950. |
  951. 1008 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF, to_ipv6mr_interface(interface))
  952. | ^^^^^^^^^^^^ not found in this scope
  953.  
  954. error[E0425]: cannot find value `IPV6_MULTICAST_IF` in this scope
  955. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1008:50
  956. |
  957. 1008 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF, to_ipv6mr_interface(interface))
  958. | ^^^^^^^^^^^^^^^^^ not found in this scope
  959.  
  960. error[E0412]: cannot find type `c_int` in this scope
  961. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1012:19
  962. |
  963. 1012 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF).map(|b| b as u32)
  964. | ^^^^^ not found in this scope
  965. help: possible candidate is found in another module, you can import it into scope
  966. |
  967. 13 | use std::os::raw::c_int;
  968. |
  969.  
  970. error[E0425]: cannot find function `v` in this scope
  971. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1012:42
  972. |
  973. 1012 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF).map(|b| b as u32)
  974. | ^ not found in this scope
  975.  
  976. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  977. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1012:44
  978. |
  979. 1012 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF).map(|b| b as u32)
  980. | ^^^^^^^^^^^^ not found in this scope
  981.  
  982. error[E0425]: cannot find value `IPV6_MULTICAST_IF` in this scope
  983. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1012:59
  984. |
  985. 1012 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF).map(|b| b as u32)
  986. | ^^^^^^^^^^^^^^^^^ not found in this scope
  987.  
  988. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  989. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1016:33
  990. |
  991. 1016 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  992. | ^^^^^^^^^^ not found in this scope
  993.  
  994. error[E0425]: cannot find value `IP_TTL` in this scope
  995. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1016:45
  996. |
  997. 1016 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  998. | ^^^^^^ not found in this scope
  999.  
  1000. error[E0412]: cannot find type `c_int` in this scope
  1001. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1016:60
  1002. |
  1003. 1016 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  1004. | ^^^^^ not found in this scope
  1005. help: possible candidate is found in another module, you can import it into scope
  1006. |
  1007. 13 | use std::os::raw::c_int;
  1008. |
  1009.  
  1010. error[E0412]: cannot find type `c_int` in this scope
  1011. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1020:19
  1012. |
  1013. 1020 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
  1014. | ^^^^^ not found in this scope
  1015. help: possible candidate is found in another module, you can import it into scope
  1016. |
  1017. 13 | use std::os::raw::c_int;
  1018. |
  1019.  
  1020. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  1021. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1020:42
  1022. |
  1023. 1020 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
  1024. | ^^^^^^^^^^ not found in this scope
  1025.  
  1026. error[E0425]: cannot find value `IP_TTL` in this scope
  1027. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1020:54
  1028. |
  1029. 1020 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
  1030. | ^^^^^^ not found in this scope
  1031.  
  1032. error[E0425]: cannot find function `v` in this scope
  1033. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1025:33
  1034. |
  1035. 1025 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_UNICAST_HOPS, ttl as c_int)
  1036. | ^ not found in this scope
  1037.  
  1038. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  1039. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1025:35
  1040. |
  1041. 1025 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_UNICAST_HOPS, ttl as c_int)
  1042. | ^^^^^^^^^^^^ not found in this scope
  1043.  
  1044. error[E0425]: cannot find value `IPV6_UNICAST_HOPS` in this scope
  1045. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1025:50
  1046. |
  1047. 1025 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_UNICAST_HOPS, ttl as c_int)
  1048. | ^^^^^^^^^^^^^^^^^ not found in this scope
  1049.  
  1050. error[E0412]: cannot find type `c_int` in this scope
  1051. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1025:76
  1052. |
  1053. 1025 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_UNICAST_HOPS, ttl as c_int)
  1054. | ^^^^^ not found in this scope
  1055. help: possible candidate is found in another module, you can import it into scope
  1056. |
  1057. 13 | use std::os::raw::c_int;
  1058. |
  1059.  
  1060. error[E0412]: cannot find type `c_int` in this scope
  1061. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1029:19
  1062. |
  1063. 1029 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IPV6_UNICAST_HOPS)
  1064. | ^^^^^ not found in this scope
  1065. help: possible candidate is found in another module, you can import it into scope
  1066. |
  1067. 13 | use std::os::raw::c_int;
  1068. |
  1069.  
  1070. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  1071. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1029:42
  1072. |
  1073. 1029 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IPV6_UNICAST_HOPS)
  1074. | ^^^^^^^^^^ not found in this scope
  1075.  
  1076. error[E0425]: cannot find value `IPV6_UNICAST_HOPS` in this scope
  1077. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1029:54
  1078. |
  1079. 1029 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IPV6_UNICAST_HOPS)
  1080. | ^^^^^^^^^^^^^^^^^ not found in this scope
  1081.  
  1082. error[E0425]: cannot find function `v` in this scope
  1083. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1034:33
  1084. |
  1085. 1034 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1086. | ^ not found in this scope
  1087.  
  1088. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  1089. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1034:35
  1090. |
  1091. 1034 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1092. | ^^^^^^^^^^^^ not found in this scope
  1093.  
  1094. error[E0425]: cannot find value `IPV6_V6ONLY` in this scope
  1095. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1034:50
  1096. |
  1097. 1034 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1098. | ^^^^^^^^^^^ not found in this scope
  1099.  
  1100. error[E0412]: cannot find type `c_int` in this scope
  1101. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1034:74
  1102. |
  1103. 1034 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1104. | ^^^^^ not found in this scope
  1105. help: possible candidate is found in another module, you can import it into scope
  1106. |
  1107. 13 | use std::os::raw::c_int;
  1108. |
  1109.  
  1110. error[E0425]: cannot find function `v` in this scope
  1111. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1038:33
  1112. |
  1113. 1038 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
  1114. | ^ not found in this scope
  1115.  
  1116. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  1117. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1038:35
  1118. |
  1119. 1038 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
  1120. | ^^^^^^^^^^^^ not found in this scope
  1121.  
  1122. error[E0425]: cannot find value `IPV6_V6ONLY` in this scope
  1123. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1038:50
  1124. |
  1125. 1038 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
  1126. | ^^^^^^^^^^^ not found in this scope
  1127.  
  1128. error[E0422]: cannot find struct, variant or union type `ip_mreq` in this scope
  1129. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1043:20
  1130. |
  1131. 1043 | let mreq = ip_mreq {
  1132. | ^^^^^^^ not found in this scope
  1133.  
  1134. error[E0425]: cannot find function `ip2in_addr` in this scope
  1135. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1044:28
  1136. |
  1137. 1044 | imr_multiaddr: ip2in_addr(multiaddr),
  1138. | ^^^^^^^^^^ did you mean `ip2in6_addr`?
  1139.  
  1140. error[E0425]: cannot find function `ip2in_addr` in this scope
  1141. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1045:28
  1142. |
  1143. 1045 | imr_interface: ip2in_addr(interface),
  1144. | ^^^^^^^^^^ did you mean `ip2in6_addr`?
  1145.  
  1146. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  1147. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1047:33
  1148. |
  1149. 1047 | set_opt(self.as_sock(), IPPROTO_IP, IP_ADD_MEMBERSHIP, mreq)
  1150. | ^^^^^^^^^^ not found in this scope
  1151.  
  1152. error[E0425]: cannot find value `IP_ADD_MEMBERSHIP` in this scope
  1153. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1047:45
  1154. |
  1155. 1047 | set_opt(self.as_sock(), IPPROTO_IP, IP_ADD_MEMBERSHIP, mreq)
  1156. | ^^^^^^^^^^^^^^^^^ not found in this scope
  1157.  
  1158. error[E0422]: cannot find struct, variant or union type `ipv6_mreq` in this scope
  1159. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1052:20
  1160. |
  1161. 1052 | let mreq = ipv6_mreq {
  1162. | ^^^^^^^^^ not found in this scope
  1163.  
  1164. error[E0425]: cannot find function `v` in this scope
  1165. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1056:33
  1166. |
  1167. 1056 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_ADD_MEMBERSHIP,
  1168. | ^ not found in this scope
  1169.  
  1170. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  1171. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1056:35
  1172. |
  1173. 1056 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_ADD_MEMBERSHIP,
  1174. | ^^^^^^^^^^^^ not found in this scope
  1175.  
  1176. error[E0425]: cannot find value `IPV6_ADD_MEMBERSHIP` in this scope
  1177. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1056:50
  1178. |
  1179. 1056 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_ADD_MEMBERSHIP,
  1180. | ^^^^^^^^^^^^^^^^^^^ not found in this scope
  1181.  
  1182. error[E0422]: cannot find struct, variant or union type `ip_mreq` in this scope
  1183. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1062:20
  1184. |
  1185. 1062 | let mreq = ip_mreq {
  1186. | ^^^^^^^ not found in this scope
  1187.  
  1188. error[E0425]: cannot find function `ip2in_addr` in this scope
  1189. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1063:28
  1190. |
  1191. 1063 | imr_multiaddr: ip2in_addr(multiaddr),
  1192. | ^^^^^^^^^^ did you mean `ip2in6_addr`?
  1193.  
  1194. error[E0425]: cannot find function `ip2in_addr` in this scope
  1195. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1064:28
  1196. |
  1197. 1064 | imr_interface: ip2in_addr(interface),
  1198. | ^^^^^^^^^^ did you mean `ip2in6_addr`?
  1199.  
  1200. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  1201. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1066:33
  1202. |
  1203. 1066 | set_opt(self.as_sock(), IPPROTO_IP, IP_DROP_MEMBERSHIP, mreq)
  1204. | ^^^^^^^^^^ not found in this scope
  1205.  
  1206. error[E0425]: cannot find value `IP_DROP_MEMBERSHIP` in this scope
  1207. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1066:45
  1208. |
  1209. 1066 | set_opt(self.as_sock(), IPPROTO_IP, IP_DROP_MEMBERSHIP, mreq)
  1210. | ^^^^^^^^^^^^^^^^^^ not found in this scope
  1211.  
  1212. error[E0422]: cannot find struct, variant or union type `ipv6_mreq` in this scope
  1213. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1071:20
  1214. |
  1215. 1071 | let mreq = ipv6_mreq {
  1216. | ^^^^^^^^^ not found in this scope
  1217.  
  1218. error[E0425]: cannot find function `v` in this scope
  1219. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1075:33
  1220. |
  1221. 1075 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_DROP_MEMBERSHIP,
  1222. | ^ not found in this scope
  1223.  
  1224. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  1225. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1075:35
  1226. |
  1227. 1075 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_DROP_MEMBERSHIP,
  1228. | ^^^^^^^^^^^^ not found in this scope
  1229.  
  1230. error[E0425]: cannot find value `IPV6_DROP_MEMBERSHIP` in this scope
  1231. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1075:50
  1232. |
  1233. 1075 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_DROP_MEMBERSHIP,
  1234. | ^^^^^^^^^^^^^^^^^^^^ not found in this scope
  1235.  
  1236. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1237. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1080:33
  1238. |
  1239. 1080 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO,
  1240. | ^^^^^^^^^^ not found in this scope
  1241.  
  1242. error[E0425]: cannot find value `SO_RCVTIMEO` in this scope
  1243. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1080:45
  1244. |
  1245. 1080 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO,
  1246. | ^^^^^^^^^^^ not found in this scope
  1247.  
  1248. error[E0425]: cannot find function `ms2timeout` in this scope
  1249. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1081:16
  1250. |
  1251. 1081 | ms2timeout(dur))
  1252. | ^^^^^^^^^^ not found in this scope
  1253.  
  1254. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1255. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1085:33
  1256. |
  1257. 1085 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO)
  1258. | ^^^^^^^^^^ not found in this scope
  1259.  
  1260. error[E0425]: cannot find value `SO_RCVTIMEO` in this scope
  1261. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1085:45
  1262. |
  1263. 1085 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO)
  1264. | ^^^^^^^^^^^ not found in this scope
  1265.  
  1266. error[E0425]: cannot find value `timeout2ms` in this scope
  1267. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1086:18
  1268. |
  1269. 1086 | .map(timeout2ms)
  1270. | ^^^^^^^^^^ not found in this scope
  1271.  
  1272. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1273. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1090:33
  1274. |
  1275. 1090 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO,
  1276. | ^^^^^^^^^^ not found in this scope
  1277.  
  1278. error[E0425]: cannot find value `SO_SNDTIMEO` in this scope
  1279. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1090:45
  1280. |
  1281. 1090 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO,
  1282. | ^^^^^^^^^^^ not found in this scope
  1283.  
  1284. error[E0425]: cannot find function `ms2timeout` in this scope
  1285. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1091:16
  1286. |
  1287. 1091 | ms2timeout(dur))
  1288. | ^^^^^^^^^^ not found in this scope
  1289.  
  1290. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1291. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1095:33
  1292. |
  1293. 1095 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO)
  1294. | ^^^^^^^^^^ not found in this scope
  1295.  
  1296. error[E0425]: cannot find value `SO_SNDTIMEO` in this scope
  1297. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1095:45
  1298. |
  1299. 1095 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO)
  1300. | ^^^^^^^^^^^ not found in this scope
  1301.  
  1302. error[E0425]: cannot find value `timeout2ms` in this scope
  1303. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1096:18
  1304. |
  1305. 1096 | .map(timeout2ms)
  1306. | ^^^^^^^^^^ not found in this scope
  1307.  
  1308. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1309. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1116:33
  1310. |
  1311. 1116 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
  1312. | ^^^^^^^^^^ not found in this scope
  1313.  
  1314. error[E0425]: cannot find value `SO_ERROR` in this scope
  1315. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1116:45
  1316. |
  1317. 1116 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
  1318. | ^^^^^^^^ not found in this scope
  1319.  
  1320. error[E0425]: cannot find function `set_nonblocking` in this scope
  1321. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1159:9
  1322. |
  1323. 1159 | set_nonblocking(self.as_sock(), nonblocking)
  1324. | ^^^^^^^^^^^^^^^ help: try: `self.set_nonblocking`
  1325.  
  1326. error[E0412]: cannot find type `Socket` in this scope
  1327. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1163:39
  1328. |
  1329. 1163 | fn do_connect<A: ToSocketAddrs>(sock: Socket, addr: A) -> io::Result<()> {
  1330. | ^^^^^^ not found in this scope
  1331. help: possible candidate is found in another module, you can import it into scope
  1332. |
  1333. 13 | use socket::Socket;
  1334. |
  1335.  
  1336. error[E0412]: cannot find type `in_addr` in this scope
  1337. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1218:20
  1338. |
  1339. 1218 | fn in_addr2ip(ip: &in_addr) -> Ipv4Addr {
  1340. | ^^^^^^^ not found in this scope
  1341.  
  1342. error[E0412]: cannot find type `c_uint` in this scope
  1343. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1235:39
  1344. |
  1345. 1235 | fn to_ipv6mr_interface(value: u32) -> c_uint {
  1346. | ^^^^^^ not found in this scope
  1347. help: possible candidate is found in another module, you can import it into scope
  1348. |
  1349. 13 | use std::os::raw::c_uint;
  1350. |
  1351.  
  1352. error[E0412]: cannot find type `c_uint` in this scope
  1353. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1236:14
  1354. |
  1355. 1236 | value as c_uint
  1356. | ^^^^^^ not found in this scope
  1357. help: possible candidate is found in another module, you can import it into scope
  1358. |
  1359. 13 | use std::os::raw::c_uint;
  1360. |
  1361.  
  1362. error[E0412]: cannot find type `in6_addr` in this scope
  1363. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1239:34
  1364. |
  1365. 1239 | fn ip2in6_addr(ip: &Ipv6Addr) -> in6_addr {
  1366. | ^^^^^^^^ not found in this scope
  1367.  
  1368. error[E0412]: cannot find type `in6_addr` in this scope
  1369. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1240:18
  1370. |
  1371. 1240 | let mut ret: in6_addr = unsafe { mem::zeroed() };
  1372. | ^^^^^^^^ not found in this scope
  1373.  
  1374. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  1375. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1268:33
  1376. |
  1377. 1268 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  1378. | ^^^^^^^^^^ not found in this scope
  1379.  
  1380. error[E0425]: cannot find value `IP_TTL` in this scope
  1381. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1268:45
  1382. |
  1383. 1268 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  1384. | ^^^^^^ not found in this scope
  1385.  
  1386. error[E0412]: cannot find type `c_int` in this scope
  1387. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1268:60
  1388. |
  1389. 1268 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  1390. | ^^^^^ not found in this scope
  1391. help: possible candidate is found in another module, you can import it into scope
  1392. |
  1393. 13 | use std::os::raw::c_int;
  1394. |
  1395.  
  1396. error[E0412]: cannot find type `c_int` in this scope
  1397. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1272:19
  1398. |
  1399. 1272 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
  1400. | ^^^^^ not found in this scope
  1401. help: possible candidate is found in another module, you can import it into scope
  1402. |
  1403. 13 | use std::os::raw::c_int;
  1404. |
  1405.  
  1406. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  1407. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1272:42
  1408. |
  1409. 1272 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
  1410. | ^^^^^^^^^^ not found in this scope
  1411.  
  1412. error[E0425]: cannot find value `IP_TTL` in this scope
  1413. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1272:54
  1414. |
  1415. 1272 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
  1416. | ^^^^^^ not found in this scope
  1417.  
  1418. error[E0425]: cannot find function `v` in this scope
  1419. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1277:33
  1420. |
  1421. 1277 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1422. | ^ not found in this scope
  1423.  
  1424. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  1425. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1277:35
  1426. |
  1427. 1277 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1428. | ^^^^^^^^^^^^ not found in this scope
  1429.  
  1430. error[E0425]: cannot find value `IPV6_V6ONLY` in this scope
  1431. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1277:50
  1432. |
  1433. 1277 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1434. | ^^^^^^^^^^^ not found in this scope
  1435.  
  1436. error[E0412]: cannot find type `c_int` in this scope
  1437. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1277:74
  1438. |
  1439. 1277 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1440. | ^^^^^ not found in this scope
  1441. help: possible candidate is found in another module, you can import it into scope
  1442. |
  1443. 13 | use std::os::raw::c_int;
  1444. |
  1445.  
  1446. error[E0425]: cannot find function `v` in this scope
  1447. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1281:33
  1448. |
  1449. 1281 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
  1450. | ^ not found in this scope
  1451.  
  1452. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  1453. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1281:35
  1454. |
  1455. 1281 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
  1456. | ^^^^^^^^^^^^ not found in this scope
  1457.  
  1458. error[E0425]: cannot find value `IPV6_V6ONLY` in this scope
  1459. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1281:50
  1460. |
  1461. 1281 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
  1462. | ^^^^^^^^^^^ not found in this scope
  1463.  
  1464. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1465. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1285:33
  1466. |
  1467. 1285 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
  1468. | ^^^^^^^^^^ not found in this scope
  1469.  
  1470. error[E0425]: cannot find value `SO_ERROR` in this scope
  1471. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1285:45
  1472. |
  1473. 1285 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
  1474. | ^^^^^^^^ not found in this scope
  1475.  
  1476. error[E0425]: cannot find function `set_nonblocking` in this scope
  1477. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1289:9
  1478. |
  1479. 1289 | set_nonblocking(self.as_sock(), nonblocking)
  1480. | ^^^^^^^^^^^^^^^ help: try: `self.set_nonblocking`
  1481.  
  1482. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1483. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1293:33
  1484. |
  1485. 1293 | set_opt(self.as_sock(), SOL_SOCKET, SO_LINGER, dur2linger(dur))
  1486. | ^^^^^^^^^^ not found in this scope
  1487.  
  1488. error[E0425]: cannot find value `SO_LINGER` in this scope
  1489. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1293:45
  1490. |
  1491. 1293 | set_opt(self.as_sock(), SOL_SOCKET, SO_LINGER, dur2linger(dur))
  1492. | ^^^^^^^^^ not found in this scope
  1493.  
  1494. error[E0425]: cannot find function `dur2linger` in this scope
  1495. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1293:56
  1496. |
  1497. 1293 | set_opt(self.as_sock(), SOL_SOCKET, SO_LINGER, dur2linger(dur))
  1498. | ^^^^^^^^^^ not found in this scope
  1499.  
  1500. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1501. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1297:33
  1502. |
  1503. 1297 | get_opt(self.as_sock(), SOL_SOCKET, SO_LINGER).map(linger2dur)
  1504. | ^^^^^^^^^^ not found in this scope
  1505.  
  1506. error[E0425]: cannot find value `SO_LINGER` in this scope
  1507. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1297:45
  1508. |
  1509. 1297 | get_opt(self.as_sock(), SOL_SOCKET, SO_LINGER).map(linger2dur)
  1510. | ^^^^^^^^^ not found in this scope
  1511.  
  1512. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  1513. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1308:33
  1514. |
  1515. 1308 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  1516. | ^^^^^^^^^^ not found in this scope
  1517.  
  1518. error[E0425]: cannot find value `IP_TTL` in this scope
  1519. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1308:45
  1520. |
  1521. 1308 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  1522. | ^^^^^^ not found in this scope
  1523.  
  1524. error[E0412]: cannot find type `c_int` in this scope
  1525. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1308:60
  1526. |
  1527. 1308 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  1528. | ^^^^^ not found in this scope
  1529. help: possible candidate is found in another module, you can import it into scope
  1530. |
  1531. 13 | use std::os::raw::c_int;
  1532. |
  1533.  
  1534. error[E0425]: cannot find function `v` in this scope
  1535. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1318:33
  1536. |
  1537. 1318 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1538. | ^ not found in this scope
  1539.  
  1540. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  1541. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1318:35
  1542. |
  1543. 1318 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1544. | ^^^^^^^^^^^^ not found in this scope
  1545.  
  1546. error[E0425]: cannot find value `IPV6_V6ONLY` in this scope
  1547. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1318:50
  1548. |
  1549. 1318 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1550. | ^^^^^^^^^^^ not found in this scope
  1551.  
  1552. error[E0412]: cannot find type `c_int` in this scope
  1553. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1318:74
  1554. |
  1555. 1318 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1556. | ^^^^^ not found in this scope
  1557. help: possible candidate is found in another module, you can import it into scope
  1558. |
  1559. 13 | use std::os::raw::c_int;
  1560. |
  1561.  
  1562. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1563. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1328:33
  1564. |
  1565. 1328 | set_opt(self.as_sock(), SOL_SOCKET, SO_REUSEADDR,
  1566. | ^^^^^^^^^^ not found in this scope
  1567.  
  1568. error[E0425]: cannot find value `SO_REUSEADDR` in this scope
  1569. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1328:45
  1570. |
  1571. 1328 | set_opt(self.as_sock(), SOL_SOCKET, SO_REUSEADDR,
  1572. | ^^^^^^^^^^^^ not found in this scope
  1573.  
  1574. error[E0412]: cannot find type `c_int` in this scope
  1575. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1329:25
  1576. |
  1577. 1329 | reuse as c_int).map(|()| self)
  1578. | ^^^^^ not found in this scope
  1579. help: possible candidate is found in another module, you can import it into scope
  1580. |
  1581. 13 | use std::os::raw::c_int;
  1582. |
  1583.  
  1584. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1585. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1334:33
  1586. |
  1587. 1334 | get_opt(self.as_sock(), SOL_SOCKET, SO_REUSEADDR).map(int2bool)
  1588. | ^^^^^^^^^^ not found in this scope
  1589.  
  1590. error[E0425]: cannot find value `SO_REUSEADDR` in this scope
  1591. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1334:45
  1592. |
  1593. 1334 | get_opt(self.as_sock(), SOL_SOCKET, SO_REUSEADDR).map(int2bool)
  1594. | ^^^^^^^^^^^^ not found in this scope
  1595.  
  1596. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1597. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1343:33
  1598. |
  1599. 1343 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
  1600. | ^^^^^^^^^^ not found in this scope
  1601.  
  1602. error[E0425]: cannot find value `SO_ERROR` in this scope
  1603. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1343:45
  1604. |
  1605. 1343 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
  1606. | ^^^^^^^^ not found in this scope
  1607.  
  1608. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1609. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1348:33
  1610. |
  1611. 1348 | set_opt(self.as_sock(), SOL_SOCKET, SO_LINGER, dur2linger(dur))
  1612. | ^^^^^^^^^^ not found in this scope
  1613.  
  1614. error[E0425]: cannot find value `SO_LINGER` in this scope
  1615. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1348:45
  1616. |
  1617. 1348 | set_opt(self.as_sock(), SOL_SOCKET, SO_LINGER, dur2linger(dur))
  1618. | ^^^^^^^^^ not found in this scope
  1619.  
  1620. error[E0425]: cannot find function `dur2linger` in this scope
  1621. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1348:56
  1622. |
  1623. 1348 | set_opt(self.as_sock(), SOL_SOCKET, SO_LINGER, dur2linger(dur))
  1624. | ^^^^^^^^^^ not found in this scope
  1625.  
  1626. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1627. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1353:33
  1628. |
  1629. 1353 | get_opt(self.as_sock(), SOL_SOCKET, SO_LINGER).map(linger2dur)
  1630. | ^^^^^^^^^^ not found in this scope
  1631.  
  1632. error[E0425]: cannot find value `SO_LINGER` in this scope
  1633. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1353:45
  1634. |
  1635. 1353 | get_opt(self.as_sock(), SOL_SOCKET, SO_LINGER).map(linger2dur)
  1636. | ^^^^^^^^^ not found in this scope
  1637.  
  1638. error[E0425]: cannot find value `IPPROTO_IP` in this scope
  1639. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1364:33
  1640. |
  1641. 1364 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  1642. | ^^^^^^^^^^ not found in this scope
  1643.  
  1644. error[E0425]: cannot find value `IP_TTL` in this scope
  1645. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1364:45
  1646. |
  1647. 1364 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  1648. | ^^^^^^ not found in this scope
  1649.  
  1650. error[E0412]: cannot find type `c_int` in this scope
  1651. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1364:60
  1652. |
  1653. 1364 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
  1654. | ^^^^^ not found in this scope
  1655. help: possible candidate is found in another module, you can import it into scope
  1656. |
  1657. 13 | use std::os::raw::c_int;
  1658. |
  1659.  
  1660. error[E0425]: cannot find function `v` in this scope
  1661. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1374:33
  1662. |
  1663. 1374 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1664. | ^ not found in this scope
  1665.  
  1666. error[E0425]: cannot find value `IPPROTO_IPV6` in this scope
  1667. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1374:35
  1668. |
  1669. 1374 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1670. | ^^^^^^^^^^^^ not found in this scope
  1671.  
  1672. error[E0425]: cannot find value `IPV6_V6ONLY` in this scope
  1673. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1374:50
  1674. |
  1675. 1374 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1676. | ^^^^^^^^^^^ not found in this scope
  1677.  
  1678. error[E0412]: cannot find type `c_int` in this scope
  1679. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1374:74
  1680. |
  1681. 1374 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
  1682. | ^^^^^ not found in this scope
  1683. help: possible candidate is found in another module, you can import it into scope
  1684. |
  1685. 13 | use std::os::raw::c_int;
  1686. |
  1687.  
  1688. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1689. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1384:33
  1690. |
  1691. 1384 | set_opt(self.as_sock(), SOL_SOCKET, SO_REUSEADDR,
  1692. | ^^^^^^^^^^ not found in this scope
  1693.  
  1694. error[E0425]: cannot find value `SO_REUSEADDR` in this scope
  1695. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1384:45
  1696. |
  1697. 1384 | set_opt(self.as_sock(), SOL_SOCKET, SO_REUSEADDR,
  1698. | ^^^^^^^^^^^^ not found in this scope
  1699.  
  1700. error[E0412]: cannot find type `c_int` in this scope
  1701. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1385:25
  1702. |
  1703. 1385 | reuse as c_int).map(|()| self)
  1704. | ^^^^^ not found in this scope
  1705. help: possible candidate is found in another module, you can import it into scope
  1706. |
  1707. 13 | use std::os::raw::c_int;
  1708. |
  1709.  
  1710. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1711. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1390:33
  1712. |
  1713. 1390 | get_opt(self.as_sock(), SOL_SOCKET, SO_REUSEADDR).map(int2bool)
  1714. | ^^^^^^^^^^ not found in this scope
  1715.  
  1716. error[E0425]: cannot find value `SO_REUSEADDR` in this scope
  1717. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1390:45
  1718. |
  1719. 1390 | get_opt(self.as_sock(), SOL_SOCKET, SO_REUSEADDR).map(int2bool)
  1720. | ^^^^^^^^^^^^ not found in this scope
  1721.  
  1722. error[E0425]: cannot find value `SOL_SOCKET` in this scope
  1723. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1399:33
  1724. |
  1725. 1399 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
  1726. | ^^^^^^^^^^ not found in this scope
  1727.  
  1728. error[E0425]: cannot find value `SO_ERROR` in this scope
  1729. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:1399:45
  1730. |
  1731. 1399 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
  1732. | ^^^^^^^^ not found in this scope
  1733.  
  1734. error[E0046]: not all trait items implemented, missing: `set_keepalive_ms`, `keepalive_ms`
  1735. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:659:1
  1736. |
  1737. 138 | fn set_keepalive_ms(&self, keepalive: Option<u32>) -> io::Result<()>;
  1738. | --------------------------------------------------------------------- `set_keepalive_ms` from trait
  1739. ...
  1740. 146 | fn keepalive_ms(&self) -> io::Result<Option<u32>>;
  1741. | -------------------------------------------------- `keepalive_ms` from trait
  1742. ...
  1743. 659 | impl TcpStreamExt for TcpStream {
  1744. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `set_keepalive_ms`, `keepalive_ms` in implementation
  1745.  
  1746. error[E0046]: not all trait items implemented, missing: `send`, `recv`
  1747. --> /Users/huy/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/ext.rs:935:1
  1748. |
  1749. 615 | fn send(&self, buf: &[u8]) -> io::Result<usize>;
  1750. | ------------------------------------------------ `send` from trait
  1751. ...
  1752. 622 | fn recv(&self, buf: &mut [u8]) -> io::Result<usize>;
  1753. | ---------------------------------------------------- `recv` from trait
  1754. ...
  1755. 935 | impl UdpSocketExt for UdpSocket {
  1756. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `send`, `recv` in implementation
  1757.  
  1758. error: aborting due to 245 previous errors
  1759.  
  1760. Some errors occurred: E0046, E0412, E0422, E0425, E0432, E0433.
  1761. For more information about an error, try `rustc --explain E0046`.
  1762. error: Could not compile `net2`.
  1763. warning: build failed, waiting for other jobs to finish...
  1764. error: build failed
  1765. make: *** [build] Error 101
Add Comment
Please, Sign In to add comment