Using &'static in tokio

⚓ Rust    📅 2025-10-05    👤 surdeus    👁️ 6      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Using &'static in tokio

Is it possible to use &'static via std::mem::transmute, given that the data referenced by 'static exists longer (forever)? Will this lead to some error? I need this for working with tokio. I'm trying to work with 'a, but it only leads to errors.

10 posts - 3 participants

Read full topic

🏷️ Rust_feed