Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error[E0275]: overflow evaluating the requirement `std::ptr::Unique<slab::Entry<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>>: std::marker::Send`
- --> src/main.rs:58:34
- |
- 58 | Ok(block_on(tokio::run(run().boxed())))
- | ^^^^^
- |
- = help: consider adding a `#![recursion_limit="128"]` attribute to your crate
- = note: required because it appears within the type `alloc::raw_vec::RawVec<slab::Entry<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>>`
- = note: required because it appears within the type `std::vec::Vec<slab::Entry<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>>`
- = note: required because it appears within the type `slab::Slab<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>`
- = note: required because it appears within the type `h2::proto::streams::buffer::Buffer<h2::proto::streams::recv::Event>`
- = note: required because it appears within the type `h2::proto::streams::recv::Recv`
- = note: required because it appears within the type `h2::proto::streams::streams::Actions`
- = note: required because it appears within the type `h2::proto::streams::streams::Inner`
- = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Mutex<h2::proto::streams::streams::Inner>`
- = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Arc<std::sync::Mutex<h2::proto::streams::streams::Inner>>`
- = note: required because it appears within the type `h2::proto::streams::streams::OpaqueStreamRef`
- = note: required because it appears within the type `h2::share::ReleaseCapacity`
- = note: required because it appears within the type `h2::share::RecvStream`
- = note: required because it appears within the type `hyper::body::body::Kind`
- = note: required because it appears within the type `hyper::body::body::Body`
- = note: required because it appears within the type `http::request::Request<hyper::body::body::Body>`
- = note: required because it appears within the type `(http::request::Request<hyper::body::body::Body>, hyper::client::dispatch::Callback<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>)`
- = note: required because it appears within the type `std::option::Option<(http::request::Request<hyper::body::body::Body>, hyper::client::dispatch::Callback<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>)>`
- = note: required because it appears within the type `hyper::client::dispatch::Envelope<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>`
- = note: required because of the requirements on the impl of `std::marker::Send` for `futures::sync::mpsc::Inner<hyper::client::dispatch::Envelope<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>>`
- = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Arc<futures::sync::mpsc::Inner<hyper::client::dispatch::Envelope<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>>>`
- = note: required because it appears within the type `futures::sync::mpsc::Sender<hyper::client::dispatch::Envelope<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>>`
- = note: required because it appears within the type `futures::sync::mpsc::UnboundedSender<hyper::client::dispatch::Envelope<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>>`
- = note: required because it appears within the type `hyper::client::dispatch::Sender<http::request::Request<hyper::body::body::Body>, http::response::Response<hyper::body::body::Body>>`
- = note: required because it appears within the type `hyper::client::conn::SendRequest<hyper::body::body::Body>`
- = note: required because it appears within the type `hyper::client::PoolTx<hyper::body::body::Body>`
- = note: required because it appears within the type `hyper::client::PoolClient<hyper::body::body::Body>`
- = note: required because it appears within the type `hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>`
- = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>`
- = note: required because it appears within the type `alloc::raw_vec::RawVec<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>`
- = note: required because it appears within the type `std::vec::Vec<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>`
- = note: required because it appears within the type `(std::sync::Arc<std::string::String>, std::vec::Vec<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>)`
- = note: required because of the requirements on the impl of `std::marker::Send` for `hashbrown::raw::RawTable<(std::sync::Arc<std::string::String>, std::vec::Vec<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>)>`
- = note: required because it appears within the type `hashbrown::map::HashMap<std::sync::Arc<std::string::String>, std::vec::Vec<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>, std::collections::hash_map::RandomState>`
- = note: required because it appears within the type `std::collections::HashMap<std::sync::Arc<std::string::String>, std::vec::Vec<hyper::client::pool::Idle<hyper::client::PoolClient<hyper::body::body::Body>>>>`
- = note: required because it appears within the type `hyper::client::pool::PoolInner<hyper::client::PoolClient<hyper::body::body::Body>>`
- = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Mutex<hyper::client::pool::PoolInner<hyper::client::PoolClient<hyper::body::body::Body>>>`
- = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Arc<std::sync::Mutex<hyper::client::pool::PoolInner<hyper::client::PoolClient<hyper::body::body::Body>>>>`
- = note: required because it appears within the type `std::option::Option<std::sync::Arc<std::sync::Mutex<hyper::client::pool::PoolInner<hyper::client::PoolClient<hyper::body::body::Body>>>>>`
- = note: required because it appears within the type `hyper::client::pool::Pool<hyper::client::PoolClient<hyper::body::body::Body>>`
- = note: required because it appears within the type `hyper::client::Client<reqwest::connect::Connector>`
- = note: required because it appears within the type `reqwest::async_impl::client::ClientRef`
- = note: required because of the requirements on the impl of `std::marker::Send` for `std::sync::Arc<reqwest::async_impl::client::ClientRef>`
- = note: required because it appears within the type `reqwest::async_impl::client::PendingRequest`
- = note: required because it appears within the type `reqwest::async_impl::client::PendingInner`
- = note: required because it appears within the type `reqwest::async_impl::client::Pending`
- = note: required because it appears within the type `impl futures::future::Future`
- = note: required because it appears within the type `futures::task_impl::Spawn<impl futures::future::Future>`
- = note: required because it appears within the type `futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>`
- = note: required because it appears within the type `for<'r> {url::Url, fn(reqwest::async_impl::response::Response) -> std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 'r)>> {std::result::Result::<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 'r)>>::Ok}, fn(std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error>) -> std::result::Result<<std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::Ok, <std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::Error> {<std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::into_result}, futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>, ()}`
- = note: required because it appears within the type `[static generator@src/util.rs:11:59: 13:2 url:url::Url for<'r> {url::Url, fn(reqwest::async_impl::response::Response) -> std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 'r)>> {std::result::Result::<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 'r)>>::Ok}, fn(std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error>) -> std::result::Result<<std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::Ok, <std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::Error> {<std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::into_result}, futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>, ()}]`
- = note: required because it appears within the type `std::future::GenFuture<[static generator@src/util.rs:11:59: 13:2 url:url::Url for<'r> {url::Url, fn(reqwest::async_impl::response::Response) -> std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 'r)>> {std::result::Result::<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 'r)>>::Ok}, fn(std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error>) -> std::result::Result<<std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::Ok, <std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::Error> {<std::result::Result<reqwest::async_impl::response::Response, reqwest::error::Error> as std::ops::Try>::into_result}, futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>, ()}]>`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `for<'r, 's, 't0> {&'r str, fn(std::collections::HashSet<util::Language>) -> std::result::Result<std::collections::HashSet<util::Language>, std::boxed::Box<(dyn std::error::Error + 's)>> {std::result::Result::<std::collections::HashSet<util::Language>, std::boxed::Box<(dyn std::error::Error + 's)>>::Ok}, fn(std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error>) -> std::result::Result<<std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::Ok, <std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::Error> {<std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::into_result}, fn(std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>>) -> std::result::Result<<std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::Ok, <std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::Error> {<std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::into_result}, impl core::future::future::Future, (), futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>}`
- = note: required because it appears within the type `[static generator@src/main.rs:67:65: 71:2 address:&str for<'r, 's, 't0> {&'r str, fn(std::collections::HashSet<util::Language>) -> std::result::Result<std::collections::HashSet<util::Language>, std::boxed::Box<(dyn std::error::Error + 's)>> {std::result::Result::<std::collections::HashSet<util::Language>, std::boxed::Box<(dyn std::error::Error + 's)>>::Ok}, fn(std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error>) -> std::result::Result<<std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::Ok, <std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::Error> {<std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::into_result}, fn(std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>>) -> std::result::Result<<std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::Ok, <std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::Error> {<std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::into_result}, impl core::future::future::Future, (), futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>}]`
- = note: required because it appears within the type `std::future::GenFuture<[static generator@src/main.rs:67:65: 71:2 address:&str for<'r, 's, 't0> {&'r str, fn(std::collections::HashSet<util::Language>) -> std::result::Result<std::collections::HashSet<util::Language>, std::boxed::Box<(dyn std::error::Error + 's)>> {std::result::Result::<std::collections::HashSet<util::Language>, std::boxed::Box<(dyn std::error::Error + 's)>>::Ok}, fn(std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error>) -> std::result::Result<<std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::Ok, <std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::Error> {<std::result::Result<std::collections::HashSet<util::Language>, reqwest::error::Error> as std::ops::Try>::into_result}, fn(std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>>) -> std::result::Result<<std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::Ok, <std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::Error> {<std::result::Result<reqwest::async_impl::response::Response, std::boxed::Box<(dyn std::error::Error + 't0)>> as std::ops::Try>::into_result}, impl core::future::future::Future, (), futures_util::compat::compat01as03::Compat01As03<impl futures::future::Future>}]>`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `for<'r> {impl core::future::future::Future, ()}`
- = note: required because it appears within the type `[static generator@src/main.rs:61:31: 65:2 for<'r> {impl core::future::future::Future, ()}]`
- = note: required because it appears within the type `std::future::GenFuture<[static generator@src/main.rs:61:31: 65:2 for<'r> {impl core::future::future::Future, ()}]>`
- = note: required because it appears within the type `impl core::future::future::Future`
- = note: required because it appears within the type `impl core::future::future::Future`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement