How to deal with a type not implementing "Send"?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • redis-swapplex

    Atomic state-transition based multiplexed redis connection

    You can have a type that is Send/Sync that internally utilizes thread locals. I went all out for performance when I wrote redis-swapplex, and if you look at the source code for this you can see some design patterns around how to do this sort of thing. With this, I utilized thread locals to implement arc_swap::cache::Cache by making my trait force the implementation to define the LocalKey so that this could be derivable on foreign types to support multiple database usage. You could use this same design pattern to make the actual type that goes in your extension Send/Sync

  • miniserve

    🌟 For when you really just want to serve some files over HTTP right now!

    I actually implemented something superficially similar to my PyQt signals-and-slots, parallel, off-main-thread thumbnail loading for an actix-web project that's sort of like miniserve, but for image galleries.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts