On Tue, Oct 11, 2022 at 09:46:51AM +0530, Viresh Kumar wrote: > On 29-09-22, 15:55, Miguel Ojeda wrote: > > It looks like a container whose elements get invalidated, so > > `read_edge_event` could require an exclusive reference to `buffer` in > > Rust, that way you cannot keep borrows to its elements like `ev` if > > you want to call it. But of course this requires tying the lifetime of > > the events to that of the buffer. > > What about the below code changes on top of V6 ? > Can you clone the event to detach it from the buffer? Or are you now forced to drop the event before reading more? Cheers, Kent.