summaryrefslogtreecommitdiff
path: root/game_server/err
blob: 6ca8a6f9f7df9f16863b918a4877463c448907b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
   Compiling game-server v0.1.0 (/home/jan/projects/DiscoBot/game_server)
error[E0277]: the trait bound `(): futures::future::Future` is not satisfied
  --> src/backend_connection.rs:32:24
   |
32 |         hyper::rt::run(hyper::rt::lazy(|| {
   |                        ^^^^^^^^^^^^^^^ the trait `futures::future::Future` is not implemented for `()`
   |
   = note: required because of the requirements on the impl of `futures::future::IntoFuture` for `()`
   = note: required by `futures::future::lazy::lazy`

error[E0599]: no method named `wait` found for type `std::result::Result<futures::future::map_err::MapErr<futures::future::map::Map<hyper::client::ResponseFuture, [closure@src/backend_connection.rs:54:34: 54:68]>, [closure@src/backend_connection.rs:55:38: 55:73]>, http::uri::InvalidUri>` in the current scope
  --> src/backend_connection.rs:56:24
   |
56 |                     }).wait();
   |                        ^^^^
   |
   = note: the method `wait` exists but the following trait bounds were not satisfied:
           `&mut std::result::Result<futures::future::map_err::MapErr<futures::future::map::Map<hyper::client::ResponseFuture, [closure@src/backend_connection.rs:54:34: 54:68]>, [closure@src/backend_connection.rs:55:38: 55:73]>, http::uri::InvalidUri> : futures::future::Future`

error[E0308]: mismatched types
  --> src/backend_connection.rs:58:17
   |
58 |                 res
   |                 ^^^ expected (), found enum `std::result::Result`
   |
   = note: expected type `()`
              found type `std::result::Result<http::response::Response<hyper::body::body::Body>, http::uri::InvalidUri>`

error[E0277]: the trait bound `(): futures::future::Future` is not satisfied
  --> src/backend_connection.rs:32:24
   |
32 |           hyper::rt::run(hyper::rt::lazy(|| {
   |  ________________________^
33 | |             let client = hyper::Client::builder()
34 | |                                 .build::<_, hyper::Body>(
35 | |                                     HttpsConnector::new(4).unwrap()
...  |
59 | |             }
60 | |         }));
   | |__________^ the trait `futures::future::Future` is not implemented for `()`
   |
   = note: required because of the requirements on the impl of `futures::future::IntoFuture` for `()`
   = note: required by `futures::future::lazy::Lazy`

error[E0277]: the trait bound `(): futures::future::Future` is not satisfied
  --> src/backend_connection.rs:32:9
   |
32 |         hyper::rt::run(hyper::rt::lazy(|| {
   |         ^^^^^^^^^^^^^^ the trait `futures::future::Future` is not implemented for `()`
   |
   = note: required because of the requirements on the impl of `futures::future::IntoFuture` for `()`
   = note: required by `hyper::rt::run`

error[E0063]: missing field `res_receiver` in initializer of `backend_connection::BackendConnection`
  --> src/backend_connection.rs:62:9
   |
62 |         BackendConnection {
   |         ^^^^^^^^^^^^^^^^^ missing `res_receiver`

error[E0609]: no field `request_sender` on type `&backend_connection::BackendConnection`
  --> src/backend_connection.rs:69:14
   |
69 |         self.request_sender.send(
   |              ^^^^^^^^^^^^^^

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0063, E0277, E0308, E0599, E0609.
For more information about an error, try `rustc --explain E0063`.
error: Could not compile `game-server`.

To learn more, run the command again with --verbose.
build failed!