Created
May 24, 2020 08:48
-
-
Save cathay4t/37945635d7e65c94bac271184bdb2882 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| error[E0061]: this function takes 1 argument but 2 arguments were supplied | |
| --> netlink-packet-route/examples/dump_links.rs:28:12 | |
| | | |
| 28 | socket.send(&buf[..], 0).unwrap(); | |
| | ^^^^ -------- - supplied 2 arguments | |
| | | | |
| | expected 1 argument | |
| error[E0061]: this function takes 1 argument but 2 arguments were supplied | |
| --> netlink-packet-route/examples/dump_rules.rs:31:28 | |
| | | |
| 31 | if let Err(e) = socket.send(&buf[..], 0) { | |
| | ^^^^ -------- - supplied 2 arguments | |
| | | | |
| | expected 1 argument | |
| error[E0308]: mismatched types | |
| --> netlink-packet-route/examples/dump_rules.rs:31:12 | |
| | | |
| 31 | if let Err(e) = socket.send(&buf[..], 0) { | |
| | ^^^^^^ expected opaque type, found enum `std::result::Result` | |
| | | |
| ::: /home/fge/Source/netlink/netlink-sys/src/tokio.rs:40:49 | |
| | | |
| 40 | pub async fn send(&mut self, buf: &[u8]) -> io::Result<usize> { | |
| | ----------------- the expected opaque type | |
| | | |
| = note: expected opaque type `impl std::future::Future` | |
| found enum `std::result::Result<_, _>` | |
| error[E0061]: this function takes 1 argument but 2 arguments were supplied | |
| --> netlink-packet-route/examples/dump_rules.rs:39:33 | |
| | | |
| 39 | while let Ok(size) = socket.recv(&mut receive_buffer[..], 0) { | |
| | ^^^^ ----------------------- - supplied 2 arguments | |
| | | | |
| | expected 1 argument | |
| error[E0308]: mismatched types | |
| --> netlink-packet-route/examples/dump_rules.rs:39:15 | |
| | | |
| 39 | while let Ok(size) = socket.recv(&mut receive_buffer[..], 0) { | |
| | ^^^^^^^^ expected opaque type, found enum `std::result::Result` | |
| | | |
| ::: /home/fge/Source/netlink/netlink-sys/src/tokio.rs:80:53 | |
| | | |
| 80 | pub async fn recv(&mut self, buf: &mut [u8]) -> io::Result<usize> { | |
| | ----------------- the expected opaque type | |
| | | |
| = note: expected opaque type `impl std::future::Future` | |
| found enum `std::result::Result<_, _>` | |
| error: aborting due to 4 previous errors | |
| Some errors have detailed explanations: E0061, E0308. | |
| For more information about an error, try `rustc --explain E0061`. | |
| error: could not compile `netlink-packet-route`. | |
| To learn more, run the command again with --verbose. | |
| warning: build failed, waiting for other jobs to finish... | |
| error[E0599]: no method named `unwrap` found for opaque type `impl std::future::Future` in the current scope | |
| --> netlink-packet-route/examples/dump_links.rs:28:30 | |
| | | |
| 28 | socket.send(&buf[..], 0).unwrap(); | |
| | ^^^^^^ method not found in `impl std::future::Future` | |
| error[E0061]: this function takes 1 argument but 2 arguments were supplied | |
| --> netlink-packet-route/examples/dump_links.rs:35:27 | |
| | | |
| 35 | let size = socket.recv(&mut receive_buffer[..], 0).unwrap(); | |
| | ^^^^ ----------------------- - supplied 2 arguments | |
| | | | |
| | expected 1 argument | |
| error[E0599]: no method named `unwrap` found for opaque type `impl std::future::Future` in the current scope | |
| --> netlink-packet-route/examples/dump_links.rs:35:60 | |
| | | |
| 35 | let size = socket.recv(&mut receive_buffer[..], 0).unwrap(); | |
| | ^^^^^^ method not found in `impl std::future::Future` | |
| error: aborting due to 4 previous errors | |
| Some errors have detailed explanations: E0061, E0599. | |
| For more information about an error, try `rustc --explain E0061`. | |
| error: could not compile `netlink-packet-route`. | |
| To learn more, run the command again with --verbose. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment