I have some code were I want to share a Read + Seek object between threads and memory.
However, when I want to return (to fullfill a trait in the rust-vfs crate), I need to rust a
Box<dyn VPath> . I do a clone of the actual struct, that contain a PathBuf and an Arc (that contain another Arc<Mutex>). The compiler dont accept this, as it can be seen with this code: link to the rust playground
It work if, as suggested by the compiler, I add 'static to the generic ( working version ). I have however no idea what does this 'static mean in the generic context, a not being a static, as I can modify it without using unsafe code. Can someone indicate me what this mean ?