Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error[E0277]: the trait bound `futures::stream::and_then::AndThen<updater::Updater, [closure@src/updater.rs:37:35: 37:80 dispatcher:_, self:_], std::boxed::Box<dyn futures::future::Future<Error=(), Ite
- m=()>>>: futures::future::Future` is not satisfied
- --> src/updater.rs:38:9
- |
- 38 | tokio::run(start);
- | ^^^^^^^^^^ the trait `futures::future::Future` is not implemented for `futures::stream::and_then::AndThen<updater::Updater, [closure@src/updater.rs:37:35: 37:80 dispatcher:_, self:_], std:
- :boxed::Box<dyn futures::future::Future<Error=(), Item=()>>>`
- |
- = note: required by `tokio::runtime::threadpool::run`
- error[E0277]: `dyn futures::future::Future<Error=(), Item=()>` cannot be sent between threads safely
- --> src/updater.rs:38:9
- |
- 38 | tokio::run(start);
- | ^^^^^^^^^^ `dyn futures::future::Future<Error=(), Item=()>` cannot be sent between threads safely
- |
- = help: the trait `std::marker::Send` is not implemented for `dyn futures::future::Future<Error=(), Item=()>`
- = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<dyn futures::future::Future<Error=(), Item=()>>`
- = note: required because it appears within the type `std::boxed::Box<dyn futures::future::Future<Error=(), Item=()>>`
- = note: required because it appears within the type `std::option::Option<std::boxed::Box<dyn futures::future::Future<Error=(), Item=()>>>`
- = note: required because it appears within the type `futures::stream::and_then::AndThen<updater::Updater, [closure@src/updater.rs:37:35: 37:80 dispatcher:_, self:_], std::boxed::Box<dyn futures::fut
- ure::Future<Error=(), Item=()>>>`
- = note: required by `tokio::runtime::threadpool::run`
- error: aborting due to 2 previous errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement