warning: unused import: `futures::Future`
--> src/main.rs:4:5
|
4 | use futures::Future;
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error[E0599]: no method named `map_err` found for struct `actix::prelude::Request<SumActor, Value>` in the current scope
--> src/main.rs:63:10
|
63 | .map_err(|e| {
| ^^^^^^^ method not found in `actix::prelude::Request<SumActor, Value>`
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
3 | use crate::futures::TryFutureExt;
|
error[E0599]: no method named `map` found for struct `actix::prelude::Request<DisplayActor, Display>` in the current scope
--> src/main.rs:74:41
|
74 | dis_addr.send(Display(res)).map(move |_| ()).map_err(|_| ())
| ^^^ method not found in `actix::prelude::Request<DisplayActor, Display>`
|
= note: the method `map` exists but the following trait bounds were not satisfied:
`&mut actix::prelude::Request<DisplayActor, Display> : std::iter::Iterator`
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
3 | use crate::futures::FutureExt;
|
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0599`.
error: could not compile `actix-middleware-tryout`.
To learn more, run the command again with --verbose.
Tried adding suggested use statements, but no luck.
warning: unused import: `futures::Future`
--> src/main.rs:4:5
|
4 | use futures::Future;
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error[E0599]: no method named `map_err` found for struct `futures::future::Map<actix::prelude::Request<DisplayActor, Display>, [closure@src/main.rs:76:45: 76:56]>` in the current scope
--> src/main.rs:76:58
|
76 | dis_addr.send(Display(res)).map(move |_| ()).map_err(|_| ())
| ^^^^^^^ method not found in `futures::future::Map<actix::prelude::Request<DisplayActor, Display>, [closure@src/main.rs:76:45: 76:56]>`
|
= note: the method `map_err` exists but the following trait bounds were not satisfied:
`&futures::future::Map<actix::prelude::Request<DisplayActor, Display>, [closure@src/main.rs:76:45: 76:56]> : futures::TryFutureExt`
`&mut futures::future::Map<actix::prelude::Request<DisplayActor, Display>, [closure@src/main.rs:76:45: 76:56]> : futures::TryFutureExt`
`futures::future::Map<actix::prelude::Request<DisplayActor, Display>, [closure@src/main.rs:76:45: 76:56]> : futures::TryFutureExt`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.
error: could not compile `actix-middleware-tryout`.
To learn more, run the command again with --verbose.