hyper/http 1.0 bumps #2968
Annotations
80 errors and 12 warnings
the method `map_err` exists for struct `MapResponseBody<S, {[email protected]:112:49}>`, but its trait bounds were not satisfied:
kube-client/src/client/mod.rs#L114
error[E0599]: the method `map_err` exists for struct `MapResponseBody<S, {[email protected]:112:49}>`, but its trait bounds were not satisfied
--> kube-client/src/client/mod.rs:114:14
|
112 | let service = MapResponseBodyLayer::new(|b: B| BodyStream::new(b.into_stream()))
| _______________________-
113 | | .layer(service)
114 | | .map_err(|e| e.into());
| | -^^^^^^^ method cannot be called on `MapResponseBody<S, {[email protected]:112:49}>` due to unsatisfied trait bounds
| |_____________|
|
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-http-0.4.4/src/map_response_body.rs:130:1
|
130 | pub struct MapResponseBody<S, F> {
| --------------------------------
| |
| doesn't satisfy `_: BodyExt`
| doesn't satisfy `_: Body`
| doesn't satisfy `_: Service<_>`
| doesn't satisfy `_: ServiceExt<_>`
| doesn't satisfy `_: TryStreamExt`
| doesn't satisfy `_: TryStream`
|
= note: the following trait bounds were not satisfied:
`tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: futures::TryStream`
which is required by `tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: futures::TryStreamExt`
`tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: http_body::Body`
which is required by `tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: http_body_util::BodyExt`
`tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: tower::Service<_>`
which is required by `tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: tower::ServiceExt<_>`
`&tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: futures::TryStream`
which is required by `&tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: futures::TryStreamExt`
`&tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: http_body::Body`
which is required by `&tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: http_body_util::BodyExt`
`&tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: tower::Service<_>`
which is required by `&tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: tower::ServiceExt<_>`
`&mut tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: futures::TryStream`
which is required by `&mut tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: futures::TryStreamExt`
`&mut tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: http_body::Body`
which is required by `&mut tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: http_body_util::BodyExt`
`&mut tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: tower::Service<_>`
which is required by `&mut tower_http::map_response_body::MapResponseBody<S, {closure@kube-client/src/client/mod.rs:112:49: 112:55}>: tower::ServiceExt<_>`
|
mismatched types:
kube-client/src/client/config_ext.rs#L222
error[E0308]: mismatched types
--> kube-client/src/client/config_ext.rs:222:9
|
219 | fn rustls_https_connector(&self) -> Result<HttpsConnector<HttpConnector>> {
| ------------------------------------- expected `std::result::Result<hyper_tls::HttpsConnector<hyper_util::client::legacy::connect::HttpConnector>, error::Error>` because of return type
...
222 | self.rustls_https_connector_with_connector(connector)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `HttpsConnector<HttpConnector>`, found a different `HttpsConnector<HttpConnector>`
|
= note: `HttpsConnector<HttpConnector>` and `HttpsConnector<HttpConnector>` have similar names, but are actually distinct types
note: `HttpsConnector<HttpConnector>` is defined in crate `hyper_rustls`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-rustls-0.24.2/src/connector.rs:19:1
|
19 | pub struct HttpsConnector<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `HttpsConnector<HttpConnector>` is defined in crate `hyper_tls`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-tls-0.5.0/src/client.rs:16:1
|
16 | pub struct HttpsConnector<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/builder.rs#L200
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/builder.rs:200:51
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
= note: all function arguments must have a statically known size
= help: unsized fn params are gated as an unstable feature
|
`dyn http_body::Body` cannot be unpinned:
kube-client/src/client/builder.rs#L200
error[E0277]: `dyn http_body::Body` cannot be unpinned
--> kube-client/src/client/builder.rs:200:17
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `__Origin<'_, dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>`, the trait `std::marker::Unpin` is not implemented for `dyn http_body::Body`
|
= note: the full trait has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-6cf3cf201047aa75.long-type-13618801540855122718.txt'
= note: consider using the `pin!` macro
consider using `Box::pin` if you need to access the pinned value outside of the current scope
note: required because it appears within the type `__Origin<'_, dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:10:1
|
10 | / pin_project! {
11 | | /// Body returned by the [`map_err`] combinator.
12 | | ///
13 | | /// [`map_err`]: crate::BodyExt::map_err
... |
19 | | }
20 | | }
| |_^
= note: required for `MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<... as From<...>>::from}>` to implement `std::marker::Unpin`
= note: the full type name has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-6cf3cf201047aa75.long-type-7231820917525898413.txt'
= note: required for the cast from `Box<MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>>` to `Box<dyn Body<Data = Bytes, Error = Box<dyn Error + Send + Sync>> + Send + Unpin>`
= note: the full name for the type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-6cf3cf201047aa75.long-type-2812029235112129253.txt'
= note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
|
`dyn http_body::Body` cannot be sent between threads safely:
kube-client/src/client/builder.rs#L200
error[E0277]: `dyn http_body::Body` cannot be sent between threads safely
--> kube-client/src/client/builder.rs:200:17
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `dyn http_body::Body` cannot be sent between threads safely
|
= note: the full trait has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-6cf3cf201047aa75.long-type-7231820917525898413.txt'
= help: within `MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<... as From<...>>::from}>`, the trait `std::marker::Send` is not implemented for `dyn http_body::Body`
note: required because it appears within the type `MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<... as From<...>>::from}>`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:15:16
|
15 | pub struct MapErr<B, F> {
| ^^^^^^
= note: required for the cast from `Box<MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>>` to `Box<dyn Body<Data = Bytes, Error = Box<dyn Error + Send + Sync>> + Send + Unpin>`
= note: the full name for the type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-6cf3cf201047aa75.long-type-2812029235112129253.txt'
|
type mismatch resolving `<MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<Box<dyn Error + Send + Sync> as From<<dyn Body as Body>::Error>>::from}> as Body>::Data == Bytes`:
kube-client/src/client/builder.rs#L200
error[E0271]: type mismatch resolving `<MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<Box<dyn Error + Send + Sync> as From<<dyn Body as Body>::Error>>::from}> as Body>::Data == Bytes`
--> kube-client/src/client/builder.rs:200:17
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Bytes`, found associated type
|
= note: expected struct `bytes::Bytes`
found associated type `<dyn http_body::Body as http_body::Body>::Data`
= help: consider constraining the associated type `<dyn http_body::Body as http_body::Body>::Data` to `bytes::Bytes`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
= note: required for the cast from `Box<MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>>` to `Box<dyn Body<Data = Bytes, Error = Box<dyn Error + Send + Sync>> + Send + Unpin>`
= note: the full name for the type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-6cf3cf201047aa75.long-type-2812029235112129253.txt'
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/builder.rs#L200
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/builder.rs:200:17
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `http_body_util::combinators::MapErr`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:15:23
|
15 | pub struct MapErr<B, F> {
| ^ required by this bound in `MapErr`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely:
kube-client/src/client/builder.rs#L200
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
--> kube-client/src/client/builder.rs:200:17
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
|
= help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely:
kube-client/src/client/builder.rs#L200
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
--> kube-client/src/client/builder.rs:200:17
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied:
kube-client/src/client/builder.rs#L200
error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
--> kube-client/src/client/builder.rs:200:17
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
|
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/builder.rs#L200
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/builder.rs:200:17
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `http_body_util::combinators::MapErr`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:15:23
|
15 | pub struct MapErr<B, F> {
| ^ required by this bound in `MapErr`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely:
kube-client/src/client/builder.rs#L200
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
--> kube-client/src/client/builder.rs:200:17
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
|
= help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely:
kube-client/src/client/builder.rs#L200
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
--> kube-client/src/client/builder.rs:200:17
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied:
kube-client/src/client/builder.rs#L200
error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
--> kube-client/src/client/builder.rs:200:17
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
|
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/builder.rs#L200
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/builder.rs:200:26
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `http_body_util::combinators::MapErr`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:15:23
|
15 | pub struct MapErr<B, F> {
| ^ required by this bound in `MapErr`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely:
kube-client/src/client/builder.rs#L200
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
--> kube-client/src/client/builder.rs:200:26
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
|
= help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely:
kube-client/src/client/builder.rs#L200
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
--> kube-client/src/client/builder.rs:200:26
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied:
kube-client/src/client/builder.rs#L200
error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
--> kube-client/src/client/builder.rs:200:26
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
|
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely:
kube-client/src/client/builder.rs#L200
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
--> kube-client/src/client/builder.rs:200:57
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
|
= help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
= help: the trait `std::convert::From<std::string::String>` is implemented for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>`
= help: for that trait implementation, expected `std::string::String`, found `<dyn http_body::Body as http_body::Body>::Error`
= note: required for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely:
kube-client/src/client/builder.rs#L200
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
--> kube-client/src/client/builder.rs:200:57
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
= help: the trait `std::convert::From<std::string::String>` is implemented for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>`
= help: for that trait implementation, expected `std::string::String`, found `<dyn http_body::Body as http_body::Body>::Error`
= note: required for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied:
kube-client/src/client/builder.rs#L200
error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
--> kube-client/src/client/builder.rs:200:57
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
|
= help: the trait `std::convert::From<std::string::String>` is implemented for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>`
= help: for that trait implementation, expected `std::string::String`, found `<dyn http_body::Body as http_body::Body>::Error`
= note: required for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely:
kube-client/src/client/builder.rs#L200
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
--> kube-client/src/client/builder.rs:200:26
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
|
= help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely:
kube-client/src/client/builder.rs#L200
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
--> kube-client/src/client/builder.rs:200:26
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied:
kube-client/src/client/builder.rs#L200
error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
--> kube-client/src/client/builder.rs:200:26
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`
|
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/builder.rs#L199
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/builder.rs:199:40
|
199 | MapResponseBodyLayer::new(|body| {
| ^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
= note: all function arguments must have a statically known size
= help: unsized fn params are gated as an unstable feature
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/builder.rs#L200
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/builder.rs:200:26
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `http_body_util::BodyExt::map_err`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/lib.rs:59:15
|
57 | fn map_err<F, E>(self, f: F) -> MapErr<Self, F>
| ------- required by a bound in this associated function
58 | where
59 | Self: Sized,
| ^^^^^ required by this bound in `BodyExt::map_err`
|
trait objects must include the `dyn` keyword:
kube-client/src/client/builder.rs#L200
error[E0782]: trait objects must include the `dyn` keyword
--> kube-client/src/client/builder.rs:200:26
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^
|
help: add `dyn` keyword before this trait
|
200 | Box::new(<dyn http_body::Body>::map_err(body, BoxError::from)) as Box<DynBody>
| ++++ +
|
the value of the associated types `Error` and `Data` in `http_body::Body` must be specified:
kube-client/src/client/builder.rs#L200
error[E0191]: the value of the associated types `Error` and `Data` in `http_body::Body` must be specified
--> kube-client/src/client/builder.rs:200:26
|
200 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^ help: specify the associated types: `http_body::Body<Data = Type, Error = Type>`
|
no function or associated item named `builder` found for struct `hyper::client::conn::http1::Builder` in the current scope:
kube-client/src/client/builder.rs#L133
error[E0599]: no function or associated item named `builder` found for struct `hyper::client::conn::http1::Builder` in the current scope
--> kube-client/src/client/builder.rs:133:23
|
133 | HyperBuilder::builder().build(connector)
| ^^^^^^^ function or associated item not found in `Builder`
|
note: if you're trying to build a new `hyper::client::conn::http1::Builder`, consider using `hyper::client::conn::http1::Builder::new` which returns `hyper::client::conn::http1::Builder`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-1.1.0/src/client/conn/http1.rs:303:5
|
303 | pub fn new() -> Builder {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
the trait bound `H: tower::Service<tokio_tungstenite::tungstenite::http::Uri>` is not satisfied:
kube-client/src/client/builder.rs#L126
error[E0277]: the trait bound `H: tower::Service<tokio_tungstenite::tungstenite::http::Uri>` is not satisfied
--> kube-client/src/client/builder.rs:126:29
|
126 | let mut connector = TimeoutConnector::new(connector);
| ^^^^^^^^^^^^^^^^^^^^^ the trait `tower::Service<tokio_tungstenite::tungstenite::http::Uri>` is not implemented for `H`
|
= note: required for `hyper_rustls::HttpsConnector<H>` to implement `tower::Service<tokio_tungstenite::tungstenite::http::Uri>`
help: consider further restricting this bound
|
102 | H: 'static + Clone + Send + Sync + Service<http::Uri> + tower::Service<tokio_tungstenite::tungstenite::http::Uri>,
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
the trait bound `tokio::net::TcpStream: hyper::rt::Write` is not satisfied:
kube-client/src/client/builder.rs#L94
error[E0277]: the trait bound `tokio::net::TcpStream: hyper::rt::Write` is not satisfied
--> kube-client/src/client/builder.rs:94:30
|
94 | make_generic_builder(connector, config)
| -------------------- ^^^^^^^^^ the trait `hyper::rt::Write` is not implemented for `tokio::net::TcpStream`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `hyper::rt::Write`:
std::boxed::Box<T>
hyper::upgrade::Upgraded
hyper_util::rt::TokioIo<T>
std::pin::Pin<P>
&mut T
= note: required for `hyper_util::rt::TokioIo<tokio::net::TcpStream>` to implement `tokio::io::AsyncWrite`
note: required by a bound in `client::builder::make_generic_builder`
--> kube-client/src/client/builder.rs:103:40
|
100 | fn make_generic_builder<H>(connector: H, config: Config) -> Result<ClientBuilder<GenericService>, Error>
| -------------------- required by a bound in this function
...
103 | H::Response: 'static + AsyncRead + AsyncWrite + Send + Unpin,
| ^^^^^^^^^^ required by this bound in `make_generic_builder`
|
the trait bound `tokio::net::TcpStream: hyper::rt::Read` is not satisfied:
kube-client/src/client/builder.rs#L94
error[E0277]: the trait bound `tokio::net::TcpStream: hyper::rt::Read` is not satisfied
--> kube-client/src/client/builder.rs:94:30
|
94 | make_generic_builder(connector, config)
| -------------------- ^^^^^^^^^ the trait `hyper::rt::Read` is not implemented for `tokio::net::TcpStream`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `hyper::rt::Read`:
std::boxed::Box<T>
hyper::upgrade::Upgraded
hyper_util::rt::TokioIo<T>
std::pin::Pin<P>
&mut T
= note: required for `hyper_util::rt::TokioIo<tokio::net::TcpStream>` to implement `tokio::io::AsyncRead`
note: required by a bound in `client::builder::make_generic_builder`
--> kube-client/src/client/builder.rs:103:28
|
100 | fn make_generic_builder<H>(connector: H, config: Config) -> Result<ClientBuilder<GenericService>, Error>
| -------------------- required by a bound in this function
...
103 | H::Response: 'static + AsyncRead + AsyncWrite + Send + Unpin,
| ^^^^^^^^^ required by this bound in `make_generic_builder`
|
the trait bound `hyper_socks2::SocksConnector<hyper_util::client::legacy::connect::HttpConnector>: tower::Service<http::Uri>` is not satisfied:
kube-client/src/client/builder.rs#L91
error[E0277]: the trait bound `hyper_socks2::SocksConnector<hyper_util::client::legacy::connect::HttpConnector>: tower::Service<http::Uri>` is not satisfied
--> kube-client/src/client/builder.rs:91:41
|
91 | return make_generic_builder(connector, config);
| -------------------- ^^^^^^^^^ the trait `tower::Service<http::Uri>` is not implemented for `hyper_socks2::SocksConnector<hyper_util::client::legacy::connect::HttpConnector>`
| |
| required by a bound introduced by this call
|
= help: the trait `tower::Service<tokio_tungstenite::tungstenite::http::Uri>` is implemented for `hyper_socks2::SocksConnector<C>`
note: required by a bound in `client::builder::make_generic_builder`
--> kube-client/src/client/builder.rs:102:40
|
100 | fn make_generic_builder<H>(connector: H, config: Config) -> Result<ClientBuilder<GenericService>, Error>
| -------------------- required by a bound in this function
101 | where
102 | H: 'static + Clone + Send + Sync + Service<http::Uri>,
| ^^^^^^^^^^^^^^^^^^ required by this bound in `make_generic_builder`
|
mismatched types:
kube-client/src/client/builder.rs#L86
error[E0308]: mismatched types
--> kube-client/src/client/builder.rs:86:17
|
86 | proxy_addr,
| ^^^^^^^^^^ expected `Uri`, found `http::Uri`
|
= note: `http::Uri` and `Uri` have similar names, but are actually distinct types
note: `http::Uri` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/uri/mod.rs:96:1
|
96 | pub struct Uri {
| ^^^^^^^^^^^^^^
note: `Uri` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.11/src/uri/mod.rs:96:1
|
96 | pub struct Uri {
| ^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `http` are being used?
|
no method named `poll_data` found for struct `std::pin::Pin<&mut B>` in the current scope:
kube-client/src/client/body.rs#L30
error[E0599]: no method named `poll_data` found for struct `std::pin::Pin<&mut B>` in the current scope
--> kube-client/src/client/body.rs:30:29
|
30 | self.project().body.poll_data(cx)
| ^^^^^^^^^ method not found in `Pin<&mut B>`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `poll_data`, perhaps you need to implement it:
candidate #1: `http_body::Body`
|
mismatched types:
kube-client/src/client/auth/oauth.rs#L149
error[E0308]: mismatched types
--> kube-client/src/client/auth/oauth.rs:149:71
|
149 | tame_oauth::Error::Http(e) => Err(Error::BuildRequest(e)),
| ------------------- ^ expected `http::Error`, found `Error`
| |
| arguments to this enum variant are incorrect
|
= note: `Error` and `http::Error` have similar names, but are actually distinct types
note: `Error` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.11/src/error.rs:16:1
|
16 | pub struct Error {
| ^^^^^^^^^^^^^^^^
note: `http::Error` is defined in crate `http`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/error.rs:16:1
|
16 | pub struct Error {
| ^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `http` are being used?
note: tuple variant defined here
--> kube-client/src/client/auth/oauth.rs:52:5
|
52 | BuildRequest(#[source] http::Error),
| ^^^^^^^^^^^^
|
the method `into_async_read` exists for struct `MapErr<Full<Bytes>, {[email protected]:250:22}>`, but its trait bounds were not satisfied:
kube-client/src/client/mod.rs#L251
error[E0599]: the method `into_async_read` exists for struct `MapErr<Full<Bytes>, {[email protected]:250:22}>`, but its trait bounds were not satisfied
--> kube-client/src/client/mod.rs:251:17
|
251 | Ok(body.into_async_read())
| ^^^^^^^^^^^^^^^ method cannot be called on `MapErr<Full<Bytes>, {[email protected]:250:22}>` due to unsatisfied trait bounds
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:10:1
|
10 | / pin_project! {
11 | | /// Body returned by the [`map_err`] combinator.
12 | | ///
13 | | /// [`map_err`]: crate::BodyExt::map_err
... |
19 | | }
20 | | }
| | -
| | |
| |_doesn't satisfy `_: TryStreamExt`
| doesn't satisfy `_: TryStream`
|
= note: the following trait bounds were not satisfied:
`http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:250:22: 250:25}>: futures::TryStream`
which is required by `http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:250:22: 250:25}>: futures::TryStreamExt`
`&http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:250:22: 250:25}>: futures::TryStream`
which is required by `&http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:250:22: 250:25}>: futures::TryStreamExt`
`&mut http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:250:22: 250:25}>: futures::TryStream`
which is required by `&mut http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:250:22: 250:25}>: futures::TryStreamExt`
|
mismatched types:
kube-client/src/client/mod.rs#L234
error[E0308]: mismatched types
--> kube-client/src/client/mod.rs:234:38
|
234 | let text = String::from_utf8(body_bytes.to_bytes()).map_err(Error::FromUtf8)?;
| ----------------- ^^^^^^^^^^^^^^^^^^^^^- help: try using a conversion method: `.to_vec()`
| | |
| | expected `Vec<u8>`, found `Bytes`
| arguments to this function are incorrect
|
= note: expected struct `std::vec::Vec<u8>`
found struct `bytes::Bytes`
note: associated function defined here
--> /rustc/88189a71e4e4376eea82ac61db6a539612eb200a/library/alloc/src/string.rs:563:12
|
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied:
kube-client/src/client/mod.rs#L204
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied
--> kube-client/src/client/mod.rs:204:53
|
204 | Ok(WebSocketStream::from_raw_socket(upgraded, ws::protocol::Role::Client, None).await)
| -------------------------------- ^^^^^^^^ the trait `tokio::io::AsyncWrite` is not implemented for `hyper::upgrade::Upgraded`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `tokio::io::AsyncWrite`:
hyper_rustls::acceptor::TlsStream<C>
hyper_timeout::stream::TimeoutConnectorStream<S>
hyper_tls::MaybeHttpsStream<T>
tokio_rustls::common::Stream<'a, IO, C>
tokio_io_timeout::TimeoutReader<R>
hyper_tls::TlsStream<S>
tokio_io_timeout::TimeoutWriter<W>
hyper_rustls::MaybeHttpsStream<T>
and 42 others
note: required by a bound in `tokio_tungstenite::WebSocketStream::<S>::from_raw_socket`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-tungstenite-0.20.1/src/lib.rs:208:24
|
206 | pub async fn from_raw_socket(stream: S, role: Role, config: Option<WebSocketConfig>) -> Self
| --------------- required by a bound in this associated function
207 | where
208 | S: AsyncRead + AsyncWrite + Unpin,
| ^^^^^^^^^^ required by this bound in `WebSocketStream::<S>::from_raw_socket`
|
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied:
kube-client/src/client/mod.rs#L204
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied
--> kube-client/src/client/mod.rs:204:53
|
204 | Ok(WebSocketStream::from_raw_socket(upgraded, ws::protocol::Role::Client, None).await)
| -------------------------------- ^^^^^^^^ the trait `tokio::io::AsyncRead` is not implemented for `hyper::upgrade::Upgraded`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `tokio::io::AsyncRead`:
hyper_rustls::acceptor::TlsStream<C>
hyper_timeout::stream::TimeoutConnectorStream<S>
hyper_tls::MaybeHttpsStream<T>
tokio_rustls::common::Stream<'a, IO, C>
tokio_io_timeout::TimeoutReader<R>
hyper_tls::TlsStream<S>
tokio_io_timeout::TimeoutWriter<W>
hyper_rustls::MaybeHttpsStream<T>
and 43 others
note: required by a bound in `tokio_tungstenite::WebSocketStream::<S>::from_raw_socket`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-tungstenite-0.20.1/src/lib.rs:208:12
|
206 | pub async fn from_raw_socket(stream: S, role: Role, config: Option<WebSocketConfig>) -> Self
| --------------- required by a bound in this associated function
207 | where
208 | S: AsyncRead + AsyncWrite + Unpin,
| ^^^^^^^^^ required by this bound in `WebSocketStream::<S>::from_raw_socket`
|
mismatched types:
kube-client/src/client/mod.rs#L200
error[E0308]: mismatched types
--> kube-client/src/client/mod.rs:200:56
|
200 | let res = self.send(Request::from_parts(parts, Body::from(body))).await?;
| ------------------- ^^^^^^^^^^^^^^^^ expected `Incoming`, found `dyn Body`
| |
| arguments to this function are incorrect
|
= note: expected struct `hyper::body::Incoming`
found trait object `dyn http_body::Body`
note: associated function defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/request.rs:461:12
|
461 | pub fn from_parts(parts: Parts, body: T) -> Request<T> {
| ^^^^^^^^^^
|
mismatched types:
kube-client/src/client/mod.rs#L200
error[E0308]: mismatched types
--> kube-client/src/client/mod.rs:200:67
|
200 | let res = self.send(Request::from_parts(parts, Body::from(body))).await?;
| ---------- ^^^^ expected `dyn Body`, found `Vec<u8>`
| |
| arguments to this function are incorrect
|
= note: expected trait object `dyn http_body::Body`
found struct `std::vec::Vec<u8>`
note: associated function defined here
--> /rustc/88189a71e4e4376eea82ac61db6a539612eb200a/library/core/src/convert/mod.rs:584:8
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/mod.rs#L200
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/mod.rs:200:67
|
200 | let res = self.send(Request::from_parts(parts, Body::from(body))).await?;
| ---------- ^^^^ doesn't have a size known at compile-time
| |
| required by a bound introduced by this call
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `std::convert::From::from`
--> /rustc/88189a71e4e4376eea82ac61db6a539612eb200a/library/core/src/convert/mod.rs:584:5
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/mod.rs#L200
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/mod.rs:200:56
|
200 | let res = self.send(Request::from_parts(parts, Body::from(body))).await?;
| ^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `std::convert::From::from`
--> /rustc/88189a71e4e4376eea82ac61db6a539612eb200a/library/core/src/convert/mod.rs:584:5
|
trait objects must include the `dyn` keyword:
kube-client/src/client/mod.rs#L200
error[E0782]: trait objects must include the `dyn` keyword
--> kube-client/src/client/mod.rs:200:56
|
200 | let res = self.send(Request::from_parts(parts, Body::from(body))).await?;
| ^^^^
|
help: add `dyn` keyword before this trait
|
200 | let res = self.send(Request::from_parts(parts, <dyn Body>::from(body))).await?;
| ++++ +
|
the value of the associated types `Error` and `Data` in `http_body::Body` must be specified:
kube-client/src/client/mod.rs#L200
error[E0191]: the value of the associated types `Error` and `Data` in `http_body::Body` must be specified
--> kube-client/src/client/mod.rs:200:56
|
200 | let res = self.send(Request::from_parts(parts, Body::from(body))).await?;
| ^^^^ help: specify the associated types: `Body<Data = Type, Error = Type>`
|
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied:
kube-client/src/api/subresource.rs#L603
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied
--> kube-client/src/api/subresource.rs:603:31
|
603 | Ok(Portforwarder::new(stream, ports))
| ------------------ ^^^^^^ the trait `tokio::io::AsyncWrite` is not implemented for `hyper::upgrade::Upgraded`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `tokio::io::AsyncWrite`:
hyper_rustls::acceptor::TlsStream<C>
hyper_timeout::stream::TimeoutConnectorStream<S>
hyper_tls::MaybeHttpsStream<T>
tokio_rustls::common::Stream<'a, IO, C>
tokio_io_timeout::TimeoutReader<R>
hyper_tls::TlsStream<S>
tokio_io_timeout::TimeoutWriter<W>
hyper_rustls::MaybeHttpsStream<T>
and 42 others
note: required by a bound in `api::portforward::Portforwarder::new`
--> kube-client/src/api/portforward.rs:94:24
|
92 | pub(crate) fn new<S>(stream: WebSocketStream<S>, port_nums: &[u16]) -> Self
| --- required by a bound in this associated function
93 | where
94 | S: AsyncRead + AsyncWrite + Unpin + Sized + Send + 'static,
| ^^^^^^^^^^ required by this bound in `Portforwarder::new`
|
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied:
kube-client/src/api/subresource.rs#L603
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied
--> kube-client/src/api/subresource.rs:603:31
|
603 | Ok(Portforwarder::new(stream, ports))
| ------------------ ^^^^^^ the trait `tokio::io::AsyncRead` is not implemented for `hyper::upgrade::Upgraded`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `tokio::io::AsyncRead`:
hyper_rustls::acceptor::TlsStream<C>
hyper_timeout::stream::TimeoutConnectorStream<S>
hyper_tls::MaybeHttpsStream<T>
tokio_rustls::common::Stream<'a, IO, C>
tokio_io_timeout::TimeoutReader<R>
hyper_tls::TlsStream<S>
tokio_io_timeout::TimeoutWriter<W>
hyper_rustls::MaybeHttpsStream<T>
and 43 others
note: required by a bound in `api::portforward::Portforwarder::new`
--> kube-client/src/api/portforward.rs:94:12
|
92 | pub(crate) fn new<S>(stream: WebSocketStream<S>, port_nums: &[u16]) -> Self
| --- required by a bound in this associated function
93 | where
94 | S: AsyncRead + AsyncWrite + Unpin + Sized + Send + 'static,
| ^^^^^^^^^ required by this bound in `Portforwarder::new`
|
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied:
kube-client/src/api/subresource.rs#L564
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied
--> kube-client/src/api/subresource.rs:564:33
|
564 | Ok(AttachedProcess::new(stream, ap))
| -------------------- ^^^^^^ the trait `tokio::io::AsyncWrite` is not implemented for `hyper::upgrade::Upgraded`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `tokio::io::AsyncWrite`:
hyper_rustls::acceptor::TlsStream<C>
hyper_timeout::stream::TimeoutConnectorStream<S>
hyper_tls::MaybeHttpsStream<T>
tokio_rustls::common::Stream<'a, IO, C>
tokio_io_timeout::TimeoutReader<R>
hyper_tls::TlsStream<S>
tokio_io_timeout::TimeoutWriter<W>
hyper_rustls::MaybeHttpsStream<T>
and 42 others
note: required by a bound in `api::remote_command::AttachedProcess::new`
--> kube-client/src/api/remote_command.rs:116:24
|
114 | pub(crate) fn new<S>(stream: WebSocketStream<S>, ap: &AttachParams) -> Self
| --- required by a bound in this associated function
115 | where
116 | S: AsyncRead + AsyncWrite + Unpin + Sized + Send + 'static,
| ^^^^^^^^^^ required by this bound in `AttachedProcess::new`
|
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied:
kube-client/src/api/subresource.rs#L564
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied
--> kube-client/src/api/subresource.rs:564:33
|
564 | Ok(AttachedProcess::new(stream, ap))
| -------------------- ^^^^^^ the trait `tokio::io::AsyncRead` is not implemented for `hyper::upgrade::Upgraded`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `tokio::io::AsyncRead`:
hyper_rustls::acceptor::TlsStream<C>
hyper_timeout::stream::TimeoutConnectorStream<S>
hyper_tls::MaybeHttpsStream<T>
tokio_rustls::common::Stream<'a, IO, C>
tokio_io_timeout::TimeoutReader<R>
hyper_tls::TlsStream<S>
tokio_io_timeout::TimeoutWriter<W>
hyper_rustls::MaybeHttpsStream<T>
and 43 others
note: required by a bound in `api::remote_command::AttachedProcess::new`
--> kube-client/src/api/remote_command.rs:116:12
|
114 | pub(crate) fn new<S>(stream: WebSocketStream<S>, ap: &AttachParams) -> Self
| --- required by a bound in this associated function
115 | where
116 | S: AsyncRead + AsyncWrite + Unpin + Sized + Send + 'static,
| ^^^^^^^^^ required by this bound in `AttachedProcess::new`
|
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied:
kube-client/src/api/subresource.rs#L506
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncWrite` is not satisfied
--> kube-client/src/api/subresource.rs:506:33
|
506 | Ok(AttachedProcess::new(stream, ap))
| -------------------- ^^^^^^ the trait `tokio::io::AsyncWrite` is not implemented for `hyper::upgrade::Upgraded`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `tokio::io::AsyncWrite`:
hyper_rustls::acceptor::TlsStream<C>
hyper_timeout::stream::TimeoutConnectorStream<S>
hyper_tls::MaybeHttpsStream<T>
tokio_rustls::common::Stream<'a, IO, C>
tokio_io_timeout::TimeoutReader<R>
hyper_tls::TlsStream<S>
tokio_io_timeout::TimeoutWriter<W>
hyper_rustls::MaybeHttpsStream<T>
and 42 others
note: required by a bound in `api::remote_command::AttachedProcess::new`
--> kube-client/src/api/remote_command.rs:116:24
|
114 | pub(crate) fn new<S>(stream: WebSocketStream<S>, ap: &AttachParams) -> Self
| --- required by a bound in this associated function
115 | where
116 | S: AsyncRead + AsyncWrite + Unpin + Sized + Send + 'static,
| ^^^^^^^^^^ required by this bound in `AttachedProcess::new`
|
the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied:
kube-client/src/api/subresource.rs#L506
error[E0277]: the trait bound `hyper::upgrade::Upgraded: tokio::io::AsyncRead` is not satisfied
--> kube-client/src/api/subresource.rs:506:33
|
506 | Ok(AttachedProcess::new(stream, ap))
| -------------------- ^^^^^^ the trait `tokio::io::AsyncRead` is not implemented for `hyper::upgrade::Upgraded`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `tokio::io::AsyncRead`:
hyper_rustls::acceptor::TlsStream<C>
hyper_timeout::stream::TimeoutConnectorStream<S>
hyper_tls::MaybeHttpsStream<T>
tokio_rustls::common::Stream<'a, IO, C>
tokio_io_timeout::TimeoutReader<R>
hyper_tls::TlsStream<S>
tokio_io_timeout::TimeoutWriter<W>
hyper_rustls::MaybeHttpsStream<T>
and 43 others
note: required by a bound in `api::remote_command::AttachedProcess::new`
--> kube-client/src/api/remote_command.rs:116:12
|
114 | pub(crate) fn new<S>(stream: WebSocketStream<S>, ap: &AttachParams) -> Self
| --- required by a bound in this associated function
115 | where
116 | S: AsyncRead + AsyncWrite + Unpin + Sized + Send + 'static,
| ^^^^^^^^^ required by this bound in `AttachedProcess::new`
|
mismatched types:
kube-client/src/api/subresource.rs#L430
error[E0308]: mismatched types
--> kube-client/src/api/subresource.rs:430:36
|
430 | self.client.request_stream(req).await
| -------------- ^^^ expected `Request<Incoming>`, found `Request<Vec<u8>>`
| |
| arguments to this method are incorrect
|
= note: expected struct `http::Request<hyper::body::Incoming>`
found struct `http::Request<std::vec::Vec<u8>>`
note: method defined here
--> kube-client/src/client/mod.rs:244:18
|
244 | pub async fn request_stream(&self, request: Request<Incoming>) -> Result<impl AsyncBufRead> {
| ^^^^^^^^^^^^^^ --------------------------
|
mismatched types:
kube-client/src/api/subresource.rs#L399
error[E0308]: mismatched types
--> kube-client/src/api/subresource.rs:399:34
|
399 | self.client.request_text(req).await
| ------------ ^^^ expected `Request<Incoming>`, found `Request<Vec<u8>>`
| |
| arguments to this method are incorrect
|
= note: expected struct `http::Request<hyper::body::Incoming>`
found struct `http::Request<std::vec::Vec<u8>>`
note: method defined here
--> kube-client/src/client/mod.rs:229:18
|
229 | pub async fn request_text(&self, request: Request<Incoming>) -> Result<String> {
| ^^^^^^^^^^^^ --------------------------
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/mod.rs#L285
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/mod.rs:285:41
|
285 | let res = self.send(request.map(Body::from)).await?;
| ^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
= note: all function arguments must have a statically known size
= help: unsized fn params are gated as an unstable feature
|
the size for values of type `str` cannot be known at compilation time:
kube-client/src/client/mod.rs#L341
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> kube-client/src/client/mod.rs:341:17
|
341 | Err(LinesCodecError::MaxLineLengthExceeded) => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
note: required by a bound in `std::prelude::v1::Err`
--> /rustc/88189a71e4e4376eea82ac61db6a539612eb200a/library/core/src/result.rs:511:5
|
the size for values of type `str` cannot be known at compilation time:
kube-client/src/client/mod.rs#L324
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> kube-client/src/client/mod.rs:324:17
|
324 | Err(LinesCodecError::Io(e)) => match e.kind() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
note: required by a bound in `std::prelude::v1::Err`
--> /rustc/88189a71e4e4376eea82ac61db6a539612eb200a/library/core/src/result.rs:511:5
|
the size for values of type `str` cannot be known at compilation time:
kube-client/src/client/mod.rs#L307
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> kube-client/src/client/mod.rs:307:17
|
307 | Ok(line) => match serde_json::from_str::<WatchEvent<T>>(&line) {
| ^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
note: required by a bound in `std::prelude::v1::Ok`
--> /rustc/88189a71e4e4376eea82ac61db6a539612eb200a/library/core/src/result.rs:506:5
|
the size for values of type `str` cannot be known at compilation time:
kube-client/src/client/mod.rs#L307
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> kube-client/src/client/mod.rs:307:20
|
307 | Ok(line) => match serde_json::from_str::<WatchEvent<T>>(&line) {
| ^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
|
the method `filter_map` exists for struct `FramedRead<StreamReader<MapErr<Full<Bytes>, {[email protected]:290:55}>, _>, LinesCodec>`, but its trait bounds were not satisfied:
kube-client/src/client/mod.rs#L305
error[E0599]: the method `filter_map` exists for struct `FramedRead<StreamReader<MapErr<Full<Bytes>, {[email protected]:290:55}>, _>, LinesCodec>`, but its trait bounds were not satisfied
--> kube-client/src/client/mod.rs:305:19
|
305 | Ok(frames.filter_map(|res| async {
| -------^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-util-0.7.10/src/codec/framed_read.rs:14:1
|
14 | / pin_project! {
15 | | /// A [`Stream`] of messages decoded from an [`AsyncRead`].
16 | | ///
17 | | /// [`Stream`]: futures_core::Stream
... |
22 | | }
23 | | }
| | -
| | |
| | doesn't satisfy `_: Iterator`
| |_doesn't satisfy `_: StreamExt`
| doesn't satisfy `_: Stream`
|
= note: the full type name has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-6cf3cf201047aa75.long-type-12223067767594409584.txt'
= note: the following trait bounds were not satisfied:
`tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>, _>, tokio_util::codec::LinesCodec>: futures::Stream`
which is required by `tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>, _>, tokio_util::codec::LinesCodec>: futures::StreamExt`
`&tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>, _>, tokio_util::codec::LinesCodec>: futures::Stream`
which is required by `&tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>, _>, tokio_util::codec::LinesCodec>: futures::StreamExt`
`&mut tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>, _>, tokio_util::codec::LinesCodec>: futures::Stream`
which is required by `&mut tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>, _>, tokio_util::codec::LinesCodec>: futures::StreamExt`
`tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>, _>, tokio_util::codec::LinesCodec>: std::iter::Iterator`
which is required by `&mut tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>, _>, tokio_util::codec::LinesCodec>: std::iter::Iterator`
|
the trait bound `http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>: futures::Stream` is not satisfied:
kube-client/src/client/mod.rs#L290
error[E0277]: the trait bound `http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>: futures::Stream` is not satisfied
--> kube-client/src/client/mod.rs:290:13
|
289 | let frames = FramedRead::new(
| --------------- required by a bound introduced by this call
290 | / StreamReader::new(res.into_body().map_err(|e| {
291 | | // Client timeout. This will be ignored.
292 | | if e.is_timeout() {
293 | | return std::io::Error::new(std::io::ErrorKind::TimedOut, e);
... |
300 | | std::io::Error::new(std::io::ErrorKind::Other, e)
301 | | })),
| |_______________^ the trait `futures::Stream` is not implemented for `http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>`
|
= help: the following other types implement trait `futures::Stream`:
futures::futures_channel::mpsc::Receiver<T>
futures::futures_channel::mpsc::UnboundedReceiver<T>
tokio_util::sync::PollSemaphore
std::boxed::Box<S>
hyper::body::body::Body
tokio_tungstenite::WebSocketStream<T>
http_body_util::StreamBody<S>
http_body_util::BodyStream<B>
and 94 others
= note: required for `StreamReader<MapErr<Full<Bytes>, {[email protected]:290:55}>, _>` to implement `tokio::io::AsyncRead`
= note: the full type name has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-6cf3cf201047aa75.long-type-11263650438631173282.txt'
note: required by a bound in `tokio_util::codec::FramedRead::<T, D>::new`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-util-0.7.10/src/codec/framed_read.rs:29:8
|
29 | T: AsyncRead,
| ^^^^^^^^^ required by this bound in `FramedRead::<T, D>::new`
...
33 | pub fn new(inner: T, decoder: D) -> FramedRead<T, D> {
| --- required by a bound in this associated function
|
the trait bound `http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>: futures::Stream` is not satisfied:
kube-client/src/client/mod.rs#L290
error[E0277]: the trait bound `http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>: futures::Stream` is not satisfied
--> kube-client/src/client/mod.rs:290:31
|
290 | StreamReader::new(res.into_body().map_err(|e| {
| _____________-----------------_^
| | |
| | required by a bound introduced by this call
291 | | // Client timeout. This will be ignored.
292 | | if e.is_timeout() {
293 | | return std::io::Error::new(std::io::ErrorKind::TimedOut, e);
... |
300 | | std::io::Error::new(std::io::ErrorKind::Other, e)
301 | | })),
| |______________^ the trait `futures::Stream` is not implemented for `http_body_util::combinators::MapErr<http_body_util::Full<bytes::Bytes>, {closure@kube-client/src/client/mod.rs:290:55: 290:58}>`
|
= help: the following other types implement trait `futures::Stream`:
futures::futures_channel::mpsc::Receiver<T>
futures::futures_channel::mpsc::UnboundedReceiver<T>
tokio_util::sync::PollSemaphore
std::boxed::Box<S>
hyper::body::body::Body
tokio_tungstenite::WebSocketStream<T>
http_body_util::StreamBody<S>
http_body_util::BodyStream<B>
and 94 others
note: required by a bound in `tokio_util::io::StreamReader::<S, B>::new`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-util-0.7.10/src/io/stream_reader.rs:165:8
|
165 | S: Stream<Item = Result<B, E>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StreamReader::<S, B>::new`
...
178 | pub fn new(stream: S) -> Self {
| --- required by a bound in this associated function
|
no method named `is_timeout` found for enum `std::convert::Infallible` in the current scope:
kube-client/src/client/mod.rs#L292
error[E0599]: no method named `is_timeout` found for enum `std::convert::Infallible` in the current scope
--> kube-client/src/client/mod.rs:292:22
|
292 | if e.is_timeout() {
| ^^^^^^^^^^ method not found in `Infallible`
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/mod.rs#L285
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/mod.rs:285:29
|
285 | let res = self.send(request.map(Body::from)).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `std::convert::From`
--> /rustc/88189a71e4e4376eea82ac61db6a539612eb200a/library/core/src/convert/mod.rs:579:1
|
type mismatch in function arguments:
kube-client/src/client/mod.rs#L285
error[E0631]: type mismatch in function arguments
--> kube-client/src/client/mod.rs:285:41
|
285 | let res = self.send(request.map(Body::from)).await?;
| --- ^^^^^^^^^^
| | |
| | expected due to this
| | found signature defined here
| required by a bound introduced by this call
|
= note: expected function signature `fn(std::vec::Vec<u8>) -> _`
found function signature `fn(dyn http_body::Body) -> _`
note: required by a bound in `http::Request::<T>::map`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-1.0.0/src/request.rs:691:12
|
689 | pub fn map<F, U>(self, f: F) -> Request<U>
| --- required by a bound in this associated function
690 | where
691 | F: FnOnce(T) -> U,
| ^^^^^^^^^^^^^^ required by this bound in `Request::<T>::map`
help: consider wrapping the function in a closure
|
285 | let res = self.send(request.map(|arg0: std::vec::Vec<u8>| Body::from(/* dyn http_body::Body */))).await?;
| +++++++++++++++++++++++++ +++++++++++++++++++++++++++
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/mod.rs#L285
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/mod.rs:285:41
|
285 | let res = self.send(request.map(Body::from)).await?;
| ^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `std::convert::From::from`
--> /rustc/88189a71e4e4376eea82ac61db6a539612eb200a/library/core/src/convert/mod.rs:584:5
|
trait objects must include the `dyn` keyword:
kube-client/src/client/mod.rs#L285
error[E0782]: trait objects must include the `dyn` keyword
--> kube-client/src/client/mod.rs:285:41
|
285 | let res = self.send(request.map(Body::from)).await?;
| ^^^^
|
help: add `dyn` keyword before this trait
|
285 | let res = self.send(request.map(<dyn Body>::from)).await?;
| ++++ +
|
the value of the associated types `Error` and `Data` in `http_body::Body` must be specified:
kube-client/src/client/mod.rs#L285
error[E0191]: the value of the associated types `Error` and `Data` in `http_body::Body` must be specified
--> kube-client/src/client/mod.rs:285:41
|
285 | let res = self.send(request.map(Body::from)).await?;
| ^^^^ help: specify the associated types: `Body<Data = Type, Error = Type>`
|
mismatched types:
kube-client/src/client/mod.rs#L260
error[E0308]: mismatched types
--> kube-client/src/client/mod.rs:260:38
|
260 | let text = self.request_text(request).await?;
| ------------ ^^^^^^^ expected `Request<Incoming>`, found `Request<Vec<u8>>`
| |
| arguments to this method are incorrect
|
= note: expected struct `http::Request<hyper::body::Incoming>`
found struct `http::Request<std::vec::Vec<u8>>`
note: method defined here
--> kube-client/src/client/mod.rs:229:18
|
229 | pub async fn request_text(&self, request: Request<Incoming>) -> Result<String> {
| ^^^^^^^^^^^^ --------------------------
|
mismatched types:
kube-client/src/client/mod.rs#L219
error[E0308]: mismatched types
--> kube-client/src/client/mod.rs:219:38
|
219 | let text = self.request_text(request).await?;
| ------------ ^^^^^^^ expected `Request<Incoming>`, found `Request<Vec<u8>>`
| |
| arguments to this method are incorrect
|
= note: expected struct `http::Request<hyper::body::Incoming>`
found struct `http::Request<std::vec::Vec<u8>>`
note: method defined here
--> kube-client/src/client/mod.rs:229:18
|
229 | pub async fn request_text(&self, request: Request<Incoming>) -> Result<String> {
| ^^^^^^^^^^^^ --------------------------
|
cannot find function `to_bytes` in module `body`:
kube-client/src/client/auth/oidc.rs#L419
error[E0425]: cannot find function `to_bytes` in module `body`
--> kube-client/src/client/auth/oidc.rs:419:26
|
419 | let body = body::to_bytes(response.into_body()).await?;
| ^^^^^^^^ not found in `body`
|
cannot find function `to_bytes` in module `body`:
kube-client/src/client/auth/oidc.rs#L331
error[E0425]: cannot find function `to_bytes` in module `body`
--> kube-client/src/client/auth/oidc.rs:331:30
|
331 | let body = body::to_bytes(response.into_body()).await?;
| ^^^^^^^^ not found in `body`
|
failed to resolve: could not find `Client` in `hyper`:
kube-client/src/client/auth/oidc.rs#L307
error[E0433]: failed to resolve: could not find `Client` in `hyper`
--> kube-client/src/client/auth/oidc.rs:307:35
|
307 | let https_client = hyper::Client::builder().build(https);
| ^^^^^^ could not find `Client` in `hyper`
|
help: consider importing this struct through its public re-export
|
1 + use crate::Client;
|
help: if you import `Client`, refer to it directly
|
307 - let https_client = hyper::Client::builder().build(https);
307 + let https_client = Client::builder().build(https);
|
|
cannot find function `to_bytes` in module `hyper::body`:
kube-client/src/client/auth/oauth.rs#L131
error[E0425]: cannot find function `to_bytes` in module `hyper::body`
--> kube-client/src/client/auth/oauth.rs:131:42
|
131 | let bytes = hyper::body::to_bytes(body).await.map_err(Error::ConcatBuffers)?;
| ^^^^^^^^ not found in `hyper::body`
|
failed to resolve: could not find `Body` in `hyper`:
kube-client/src/client/auth/oauth.rs#L126
error[E0433]: failed to resolve: could not find `Body` in `hyper`
--> kube-client/src/client/auth/oauth.rs:126:49
|
126 | .request(request.map(hyper::Body::from))
| ^^^^ could not find `Body` in `hyper`
|
help: consider importing one of these items
|
1 + use crate::client::Body;
|
1 + use http_body::Body;
|
1 + use hyper::body::Body;
|
help: if you import `Body`, refer to it directly
|
126 - .request(request.map(hyper::Body::from))
126 + .request(request.map(Body::from))
|
|
cannot find type `Body` in crate `hyper`:
kube-client/src/client/auth/oauth.rs#L123
error[E0412]: cannot find type `Body` in crate `hyper`
--> kube-client/src/client/auth/oauth.rs:123:73
|
123 | let client = hyper::Client::builder().build::<_, hyper::Body>(https);
| ^^^^ not found in `hyper`
|
help: consider importing one of these items
|
1 + use crate::client::Body;
|
1 + use http_body::Body;
|
1 + use hyper::body::Body;
|
help: if you import `Body`, refer to it directly
|
123 - let client = hyper::Client::builder().build::<_, hyper::Body>(https);
123 + let client = hyper::Client::builder().build::<_, Body>(https);
|
|
failed to resolve: could not find `Client` in `hyper`:
kube-client/src/client/auth/oauth.rs#L123
error[E0433]: failed to resolve: could not find `Client` in `hyper`
--> kube-client/src/client/auth/oauth.rs:123:37
|
123 | let client = hyper::Client::builder().build::<_, hyper::Body>(https);
| ^^^^^^ could not find `Client` in `hyper`
|
help: consider importing this struct through its public re-export
|
1 + use crate::Client;
|
help: if you import `Client`, refer to it directly
|
123 - let client = hyper::Client::builder().build::<_, hyper::Body>(https);
123 + let client = Client::builder().build::<_, hyper::Body>(https);
|
|
unresolved import `hyper::Body`:
kube-client/src/client/upgrade.rs#L2
error[E0432]: unresolved import `hyper::Body`
--> kube-client/src/client/upgrade.rs:2:5
|
2 | use hyper::Body;
| ^^^^^^^^^^^ no `Body` in the root
|
help: a similar name exists in the module
|
2 | use hyper::body;
| ~~~~
help: consider importing one of these items instead
|
2 | use crate::client::Body;
| ~~~~~~~~~~~~~~~~~~~
2 | use http_body::Body;
| ~~~~~~~~~~~~~~~
2 | use hyper::body::Body;
| ~~~~~~~~~~~~~~~~~
|
unresolved imports `hyper::client::HttpConnector`, `hyper::Client`:
kube-client/src/client/auth/oidc.rs#L9
error[E0432]: unresolved imports `hyper::client::HttpConnector`, `hyper::Client`
--> kube-client/src/client/auth/oidc.rs:9:19
|
9 | use hyper::{body, client::HttpConnector, http::Uri, Client, Request};
| ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^
| | |
| | no `Client` in the root
| | help: a similar name exists in the module (notice the capitalization): `client`
| no `HttpConnector` in `client`
|
= help: consider importing this struct instead:
hyper_util::client::legacy::connect::HttpConnector
= help: consider importing one of these items instead:
crate::Client
crate::client::ws::protocol::Role::Client
rustls::Connection::Client
rustls::Side::Client
|
clippy_nightly
Clippy had exited with the 101 exit code
|
unused import: `TryStreamExt`:
kube-client/src/client/mod.rs#L11
warning: unused import: `TryStreamExt`
--> kube-client/src/client/mod.rs:11:57
|
11 | use futures::{self, AsyncBufRead, StreamExt, TryStream, TryStreamExt};
| ^^^^^^^^^^^^
|
unused import: `StreamExt`:
kube-client/src/client/mod.rs#L11
warning: unused import: `StreamExt`
--> kube-client/src/client/mod.rs:11:35
|
11 | use futures::{self, AsyncBufRead, StreamExt, TryStream, TryStreamExt};
| ^^^^^^^^^
|
unused import: `kube_core::response::Status`:
kube-client/src/client/builder.rs#L11
warning: unused import: `kube_core::response::Status`
--> kube-client/src/client/builder.rs:11:9
|
11 | pub use kube_core::response::Status;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `hyper_tls::HttpsConnector`:
kube-client/src/client/builder.rs#L9
warning: unused import: `hyper_tls::HttpsConnector`
--> kube-client/src/client/builder.rs:9:5
|
9 | use hyper_tls::HttpsConnector;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `Connection`:
kube-client/src/client/builder.rs#L6
warning: unused import: `Connection`
--> kube-client/src/client/builder.rs:6:52
|
6 | client::conn::http1::{Builder as HyperBuilder, Connection},
| ^^^^^^^^^^
|
unused imports: `StreamBody`, `combinators::BoxBody`:
kube-client/src/client/builder.rs#L3
warning: unused imports: `StreamBody`, `combinators::BoxBody`
--> kube-client/src/client/builder.rs:3:22
|
3 | use http_body_util::{combinators::BoxBody, BodyExt, StreamBody};
| ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^
|
unused imports: `Scope`, `verbs`:
kube-client/src/discovery/apigroup.rs#L4
warning: unused imports: `Scope`, `verbs`
--> kube-client/src/discovery/apigroup.rs:4:32
|
4 | pub use kube_core::discovery::{verbs, ApiCapabilities, ApiResource, Scope};
| ^^^^^ ^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
clippy_nightly
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
clippy_nightly
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_nightly
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_nightly
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_nightly
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|