You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using the task queue package Rust Celery with Salvo but got the error below. I tried multiple fixes and suggestions online but it does not work.
Are there other alternatives that work well with Salvo?
dyn celery::broker::DeliveryStream` cannot be sent between threads safely the trait `std::marker::Send` is not implemented for `dyn celery::broker::DeliveryStream`, which is required by `{async block@src/handlers/merchant_auth.rs:25:1: 25:11}: std::marker::Send` required for `std::ptr::Unique<dyn celery::broker::DeliveryStream>` to implement `std::marker::Send` required because it appears within the type `(&&str, std::boxed::Box<dyn celery::broker::DeliveryStream>)` required for `std::ptr::Unique<(&&str, std::boxed::Box<dyn celery::broker::DeliveryStream>)>` to implement `std::marker::Send` required for the cast from `std::pin::Pin<std::boxed::Box<{async block@src/handlers/merchant_auth.rs:25:1: 25:11}>>` to `std::pin::Pin<std::boxed::Box<dyn std::future::Future<Output = ()> + std::marker::Send>>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I tried using the task queue package Rust Celery with Salvo but got the error below. I tried multiple fixes and suggestions online but it does not work.
Are there other alternatives that work well with Salvo?
dyn celery::broker::DeliveryStream` cannot be sent between threads safely the trait `std::marker::Send` is not implemented for `dyn celery::broker::DeliveryStream`, which is required by `{async block@src/handlers/merchant_auth.rs:25:1: 25:11}: std::marker::Send` required for `std::ptr::Unique<dyn celery::broker::DeliveryStream>` to implement `std::marker::Send` required because it appears within the type `(&&str, std::boxed::Box<dyn celery::broker::DeliveryStream>)` required for `std::ptr::Unique<(&&str, std::boxed::Box<dyn celery::broker::DeliveryStream>)>` to implement `std::marker::Send` required for the cast from `std::pin::Pin<std::boxed::Box<{async block@src/handlers/merchant_auth.rs:25:1: 25:11}>>` to `std::pin::Pin<std::boxed::Box<dyn std::future::Future<Output = ()> + std::marker::Send>>
Beta Was this translation helpful? Give feedback.
All reactions