Advertisement
Guest User

Untitled

a guest
Sep 13th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 10.12 KB | None | 0 0
  1. error[E0277]: the trait bound `(enum_primitive::Option<lunu_lib::ArbitratorInformation>, enum_primitive::Option<futures::AndThen<futures::MapErr<impl futures::Future, fn(actix_http::client::SendRequestError) -> actix_http::Error {<actix_http::Error as std::convert::From<actix_http::client::SendRequestError>>::from}>, futures::Map<futures::stream::Fold<futures::stream::FromErr<awc::response::ClientResponse<impl futures::Stream>, actix_http::Error>, [closure@src/main.rs:250:64: 253:42], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, [closure@src/main.rs:254:46: 258:42]>, [closure@src/main.rs:248:43: 259:34]>>): futures::IntoFuture` is not satisfied
  2.    --> src/main.rs:208:10
  3.     |
  4. 208 |         .and_then(move |(auction, all_responses)| {
  5.     |          ^^^^^^^^ the trait `futures::IntoFuture` is not implemented for `(enum_primitive::Option<lunu_lib::ArbitratorInformation>, enum_primitive::Option<futures::AndThen<futures::MapErr<impl futures::Future, fn(actix_http::client::SendRequestError) -> actix_http::Error {<actix_http::Error as std::convert::From<actix_http::client::SendRequestError>>::from}>, futures::Map<futures::stream::Fold<futures::stream::FromErr<awc::response::ClientResponse<impl futures::Stream>, actix_http::Error>, [closure@src/main.rs:250:64: 253:42], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, [closure@src/main.rs:254:46: 258:42]>, [closure@src/main.rs:248:43: 259:34]>>)`
  6.     |
  7.     = help: the following implementations were found:
  8.               <(A, B) as futures::IntoFuture>
  9.  
  10. error[E0599]: no method named `and_then` found for type `futures::AndThen<futures::AndThen<futures::AndThen<futures::AndThen<futures::stream::Fold<futures::stream::FromErr<actix_web::types::payload::Payload, actix_http::Error>, [closure@<::lunu_lib::get_body macros>:4:26: 9:7], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, std::result::Result<lunu_lib::ConvertCryptocurrencyRequest, actix_http::Error>, [closure@src/main.rs:125:19: 132:10]>, futures::AndThen<futures::MapErr<impl futures::Future, fn(actix_http::client::SendRequestError) -> actix_http::Error {<actix_http::Error as std::convert::From<actix_http::client::SendRequestError>>::from}>, futures::Map<futures::stream::Fold<futures::stream::FromErr<awc::response::ClientResponse<impl futures::Stream>, actix_http::Error>, [closure@src/main.rs:142:48: 145:26], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, [closure@src/main.rs:146:30: 149:26 client:_, convert_request:_]>, [closure@src/main.rs:140:27: 150:18 client:_, convert_request:_]>, [closure@src/main.rs:133:19: 151:10 client:_]>, (std::result::Result<lunu_lib::AuctionInformation, actix_http::Error>, enum_primitive::Option<futures::Collect<std::iter::Map<std::vec::IntoIter<lunu_lib::NodeInfo>, [closure@src/main.rs:177:21: 200:22 client:_, convert_info:_]>>>), [closure@src/main.rs:152:19: 207:10]>, (enum_primitive::Option<lunu_lib::ArbitratorInformation>, enum_primitive::Option<futures::AndThen<futures::MapErr<impl futures::Future, fn(actix_http::client::SendRequestError) -> actix_http::Error {<actix_http::Error as std::convert::From<actix_http::client::SendRequestError>>::from}>, futures::Map<futures::stream::Fold<futures::stream::FromErr<awc::response::ClientResponse<impl futures::Stream>, actix_http::Error>, [closure@src/main.rs:250:64: 253:42], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, [closure@src/main.rs:254:46: 258:42]>, [closure@src/main.rs:248:43: 259:34]>>), [closure@src/main.rs:208:19: 266:10]>` in the current scope
  11.    --> src/main.rs:267:10
  12.     |
  13. 267 |         .and_then(move |(_arbitrator, _oracle_response)| {
  14.     |          ^^^^^^^^
  15.     |
  16.     = note: the method `and_then` exists but the following trait bounds were not satisfied:
  17.             `&mut futures::AndThen<futures::AndThen<futures::AndThen<futures::AndThen<futures::stream::Fold<futures::stream::FromErr<actix_web::types::payload::Payload, actix_http::Error>, [closure@<::lunu_lib::get_body macros>:4:26: 9:7], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, std::result::Result<lunu_lib::ConvertCryptocurrencyRequest, actix_http::Error>, [closure@src/main.rs:125:19: 132:10]>, futures::AndThen<futures::MapErr<impl futures::Future, fn(actix_http::client::SendRequestError) -> actix_http::Error {<actix_http::Error as std::convert::From<actix_http::client::SendRequestError>>::from}>, futures::Map<futures::stream::Fold<futures::stream::FromErr<awc::response::ClientResponse<impl futures::Stream>, actix_http::Error>, [closure@src/main.rs:142:48: 145:26], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, [closure@src/main.rs:146:30: 149:26 client:_, convert_request:_]>, [closure@src/main.rs:140:27: 150:18 client:_, convert_request:_]>, [closure@src/main.rs:133:19: 151:10 client:_]>, (std::result::Result<lunu_lib::AuctionInformation, actix_http::Error>, enum_primitive::Option<futures::Collect<std::iter::Map<std::vec::IntoIter<lunu_lib::NodeInfo>, [closure@src/main.rs:177:21: 200:22 client:_, convert_info:_]>>>), [closure@src/main.rs:152:19: 207:10]>, (enum_primitive::Option<lunu_lib::ArbitratorInformation>, enum_primitive::Option<futures::AndThen<futures::MapErr<impl futures::Future, fn(actix_http::client::SendRequestError) -> actix_http::Error {<actix_http::Error as std::convert::From<actix_http::client::SendRequestError>>::from}>, futures::Map<futures::stream::Fold<futures::stream::FromErr<awc::response::ClientResponse<impl futures::Stream>, actix_http::Error>, [closure@src/main.rs:250:64: 253:42], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, [closure@src/main.rs:254:46: 258:42]>, [closure@src/main.rs:248:43: 259:34]>>), [closure@src/main.rs:208:19: 266:10]> : futures::Future`
  18.             `&mut futures::AndThen<futures::AndThen<futures::AndThen<futures::AndThen<futures::stream::Fold<futures::stream::FromErr<actix_web::types::payload::Payload, actix_http::Error>, [closure@<::lunu_lib::get_body macros>:4:26: 9:7], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, std::result::Result<lunu_lib::ConvertCryptocurrencyRequest, actix_http::Error>, [closure@src/main.rs:125:19: 132:10]>, futures::AndThen<futures::MapErr<impl futures::Future, fn(actix_http::client::SendRequestError) -> actix_http::Error {<actix_http::Error as std::convert::From<actix_http::client::SendRequestError>>::from}>, futures::Map<futures::stream::Fold<futures::stream::FromErr<awc::response::ClientResponse<impl futures::Stream>, actix_http::Error>, [closure@src/main.rs:142:48: 145:26], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, [closure@src/main.rs:146:30: 149:26 client:_, convert_request:_]>, [closure@src/main.rs:140:27: 150:18 client:_, convert_request:_]>, [closure@src/main.rs:133:19: 151:10 client:_]>, (std::result::Result<lunu_lib::AuctionInformation, actix_http::Error>, enum_primitive::Option<futures::Collect<std::iter::Map<std::vec::IntoIter<lunu_lib::NodeInfo>, [closure@src/main.rs:177:21: 200:22 client:_, convert_info:_]>>>), [closure@src/main.rs:152:19: 207:10]>, (enum_primitive::Option<lunu_lib::ArbitratorInformation>, enum_primitive::Option<futures::AndThen<futures::MapErr<impl futures::Future, fn(actix_http::client::SendRequestError) -> actix_http::Error {<actix_http::Error as std::convert::From<actix_http::client::SendRequestError>>::from}>, futures::Map<futures::stream::Fold<futures::stream::FromErr<awc::response::ClientResponse<impl futures::Stream>, actix_http::Error>, [closure@src/main.rs:250:64: 253:42], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, [closure@src/main.rs:254:46: 258:42]>, [closure@src/main.rs:248:43: 259:34]>>), [closure@src/main.rs:208:19: 266:10]> : futures::Stream`
  19.             `futures::AndThen<futures::AndThen<futures::AndThen<futures::AndThen<futures::stream::Fold<futures::stream::FromErr<actix_web::types::payload::Payload, actix_http::Error>, [closure@<::lunu_lib::get_body macros>:4:26: 9:7], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, std::result::Result<lunu_lib::ConvertCryptocurrencyRequest, actix_http::Error>, [closure@src/main.rs:125:19: 132:10]>, futures::AndThen<futures::MapErr<impl futures::Future, fn(actix_http::client::SendRequestError) -> actix_http::Error {<actix_http::Error as std::convert::From<actix_http::client::SendRequestError>>::from}>, futures::Map<futures::stream::Fold<futures::stream::FromErr<awc::response::ClientResponse<impl futures::Stream>, actix_http::Error>, [closure@src/main.rs:142:48: 145:26], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, [closure@src/main.rs:146:30: 149:26 client:_, convert_request:_]>, [closure@src/main.rs:140:27: 150:18 client:_, convert_request:_]>, [closure@src/main.rs:133:19: 151:10 client:_]>, (std::result::Result<lunu_lib::AuctionInformation, actix_http::Error>, enum_primitive::Option<futures::Collect<std::iter::Map<std::vec::IntoIter<lunu_lib::NodeInfo>, [closure@src/main.rs:177:21: 200:22 client:_, convert_info:_]>>>), [closure@src/main.rs:152:19: 207:10]>, (enum_primitive::Option<lunu_lib::ArbitratorInformation>, enum_primitive::Option<futures::AndThen<futures::MapErr<impl futures::Future, fn(actix_http::client::SendRequestError) -> actix_http::Error {<actix_http::Error as std::convert::From<actix_http::client::SendRequestError>>::from}>, futures::Map<futures::stream::Fold<futures::stream::FromErr<awc::response::ClientResponse<impl futures::Stream>, actix_http::Error>, [closure@src/main.rs:250:64: 253:42], std::result::Result<bytes::bytes::BytesMut, actix_http::Error>, bytes::bytes::BytesMut>, [closure@src/main.rs:254:46: 258:42]>, [closure@src/main.rs:248:43: 259:34]>>), [closure@src/main.rs:208:19: 266:10]> : futures::Future`
  20.  
  21. error: aborting due to 2 previous errors
  22.  
  23. Some errors have detailed explanations: E0277, E0599.
  24. For more information about an error, try `rustc --explain E0277`.
  25. error: Could not compile `relay-service`.
  26.  
  27. To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement