Hello.
$ rustc --version
rustc 1.48.0 (7eac88abb 2020-11-16)
While trying to run example code from iproute2 - Rust
I'm catching an error
error[E0599]: no method named `and_then` found for opaque type `impl futures::future::Future` in the current scope --> src/main.rs:18:49 | 18 | let request = handle.link().get().execute().and_then(|links| { | ^^^^^^^^ method not found in `impl futures::future::Future`
Then I googled rust - and_then method not found in futures 0.3 - Stack Overflow
that I should use trait for TryFutureExt. So I tried to proceed with my understanding and didn't make it work in code.
I'm quite new in programming rust. Please help.
p.s. Also I have problem around
core.handle().spawn(connection.map_err(|_| ()));
but this one will be for future me.