T
Size: a a a
T
MB
T
no method named `map` found for struct `hyper::client::ResponseFuture` in the current scope
let request_result = core.run(client
.request(req)
.map(|res| {
println!("Response: {}", res.status());
})
.map_err(|err| {
println!("Error: {}", err);
})
);
T
Э
map()
. Если знаешь как оно работает, поищи что-то похожее у структуры.MB
no method named `map` found for struct `hyper::client::ResponseFuture` in the current scope
let request_result = core.run(client
.request(req)
.map(|res| {
println!("Response: {}", res.status());
})
.map_err(|err| {
println!("Error: {}", err);
})
);
T
T
= note: the method `map` exists but the following trait bounds were not satisfied:
`&mut hyper::client::ResponseFuture : futures::future::Future`
`&mut hyper::client::ResponseFuture : std::iter::Iterator`
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use futures_util::future::future::FutureExt;`
MB
В
let client = Client::builder().build::<_, hyper::Body>(https);
| ^^^^^ the trait `hyper::client::connect::Connect` is not implemented for `hyper_tls::client::HttpsConnector<hyper::client::connect::http::HttpConnector>`
248 | .request(req)
| ^^^^^^^ method not found in `hyper::client::Client<hyper_tls::client::HttpsConnector<hyper::client::connect::http::HttpConnector>>`
reqwest
?T
reqwest
?В
hyper
T
hyper
В
T
core.run
до этогоe🦀
e🦀
T
e🦀
В
reqwest
много где. Правда без actix