Rust Ring-buffer Resources