我现在正在学习Rust大约3个小时,并且找不到任何类似于文件锁定的东西(你知道,就像Linux中的一些程序用来阻止多个实例运行).
例如在Python中,我将使用此模块:https://github.com/openstack/pylockfile
我是否忽略了Rust中的类似功能,或者我应该从头开始实现它?
不是懒惰,只是试图重新发明尽可能少的车轮.
synchronization locking rust
locking ×1
rust ×1
synchronization ×1