On Fri, Jun 20, 2025 at 10:42:09AM -0300, Daniel Almeida wrote: > Hi Beata, > > > There is no concurrent access nor shared references, unless the > > handler decides otherwise > > It can’t do so in safe code. There is no way to manufacture a shared > reference from a mutable one in safe code and if it passes that to C, then > it’s already using a unsafe block for the ffi call. > > Unless I missed something? I do not think you have, though my comment wasn't meant to suggest anything otherwise, merely emphasising that up to this point, the code upholds Rust's safety guarantees.What the handler does afterward is a topic for another time (change).
Hope that this makes the intent more clear (?) --- BR Beata > > — Daniel