Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. 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
  2. m=()>>>: futures::future::Future` is not satisfied
  3. --> src/updater.rs:38:9
  4. |
  5. 38 | tokio::run(start);
  6. | ^^^^^^^^^^ 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:
  7. :boxed::Box<dyn futures::future::Future<Error=(), Item=()>>>`
  8. |
  9. = note: required by `tokio::runtime::threadpool::run`
  10.  
  11. error[E0277]: `dyn futures::future::Future<Error=(), Item=()>` cannot be sent between threads safely
  12. --> src/updater.rs:38:9
  13. |
  14. 38 | tokio::run(start);
  15. | ^^^^^^^^^^ `dyn futures::future::Future<Error=(), Item=()>` cannot be sent between threads safely
  16. |
  17. = help: the trait `std::marker::Send` is not implemented for `dyn futures::future::Future<Error=(), Item=()>`
  18. = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<dyn futures::future::Future<Error=(), Item=()>>`
  19. = note: required because it appears within the type `std::boxed::Box<dyn futures::future::Future<Error=(), Item=()>>`
  20. = note: required because it appears within the type `std::option::Option<std::boxed::Box<dyn futures::future::Future<Error=(), Item=()>>>`
  21. = 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
  22. ure::Future<Error=(), Item=()>>>`
  23. = note: required by `tokio::runtime::threadpool::run`
  24.  
  25. error: aborting due to 2 previous errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement