physlock in Rust