в🧇
Size: a a a
в🧇
a
error: future cannot be sent between threads safelyсобственно, вопросы:
--> examples/check.rs:5:5
|
5 | tokio::spawn(build_error()).await;
| ^^^^^^^^^^^^ future returned by `build_error` is not `Send`
|
::: /home/anton/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/spawn.rs:127:21
|
127 | T: Future + Send + 'static,
| ---- required by this bound in `tokio::spawn`
|
= help: within `tendril::tendril::NonAtomic`, the trait `std::marker::Sync` is not implemented for `std::cell::Cell<usize>`
note: future is not `Send` as this value is used across an await
--> examples/check.rs:12:5
|
10 | let parsed_doc = Html::parse_document("<div></div>");
| ---------- has type `scraper::Html` which is not `Send`
11 | sub_run(parsed_doc);
12 | another_run().await;
| ^^^^^^^^^^^^^^^^^^^ await occurs here, with `parsed_doc` maybe used later
13 | }
| - `parsed_doc` is later dropped here
error: aborting due to previous error; 1 warning emitted
a
10 | let parsed_doc = Html::parse_document("<div></div>");
| ---------- has type `scraper::Html` which is not `Send`
...
13 | another_run().await;
| ^^^^^^^^^^^^^^^^^^^ await occurs here, with `parsed_doc` maybe used later
14 | }
| - `parsed_doc` is later dropped hereIT
error: future cannot be sent between threads safelyсобственно, вопросы:
--> examples/check.rs:5:5
|
5 | tokio::spawn(build_error()).await;
| ^^^^^^^^^^^^ future returned by `build_error` is not `Send`
|
::: /home/anton/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/task/spawn.rs:127:21
|
127 | T: Future + Send + 'static,
| ---- required by this bound in `tokio::spawn`
|
= help: within `tendril::tendril::NonAtomic`, the trait `std::marker::Sync` is not implemented for `std::cell::Cell<usize>`
note: future is not `Send` as this value is used across an await
--> examples/check.rs:12:5
|
10 | let parsed_doc = Html::parse_document("<div></div>");
| ---------- has type `scraper::Html` which is not `Send`
11 | sub_run(parsed_doc);
12 | another_run().await;
| ^^^^^^^^^^^^^^^^^^^ await occurs here, with `parsed_doc` maybe used later
13 | }
| - `parsed_doc` is later dropped here
error: aborting due to previous error; 1 warning emitted
async fn build_error() {
{
let parsed_doc = Html::parse_document("<div></div>");
sub_run(parsed_doc);
}
another_run().await;
}a
IT
a
MS
V
V
в🧇
A
MB
MB
A
IB
Arc<Pin<Box<db::Connec>t>>?A
Arc<Pin<Box<db::Connec>t>>?struct Ctx {
pub cfg: Config,
pub db: Arc<Mongo::connect>
}A
IB