Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- --> src/main.rs:208:10
- |
- 208 | .and_then(move |(auction, all_responses)| {
- | ^^^^^^^^ 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]>>)`
- |
- = help: the following implementations were found:
- <(A, B) as futures::IntoFuture>
- 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
- --> src/main.rs:267:10
- |
- 267 | .and_then(move |(_arbitrator, _oracle_response)| {
- | ^^^^^^^^
- |
- = note: the method `and_then` exists but the following trait bounds were not satisfied:
- `&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`
- `&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`
- `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`
- error: aborting due to 2 previous errors
- Some errors have detailed explanations: E0277, E0599.
- For more information about an error, try `rustc --explain E0277`.
- error: Could not compile `relay-service`.
- To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement