Rust 1.76 跨线程传 Rc 编译报 Send 不满足 换成 Arc 行不行 陆零云 2026-11-22 10:06:22 10 0 Rust 1.76 的缓存服务,图省事用了 Rc<RefCell<HashMap<u64, String>>>,单线程跑得好好的。加了个后台线程定时写缓存,clone 之后 move 进 thread::spawn,cargo build 直接报 Rc 不能跨线程发送。 报错原文是 Rc<RefCell<HashMap<u64, String>>> cannot be sent bet...