pub struct DynTestLock { /* private fields */ }Available on crate feature
dyntest only.Expand description
工程心跳锁:在 target/dyn_tests/lock/ 下创建锁文件并由后台线程每 500ms 续写,Drop 时停线程删文件,用于识别僵尸工程。
§Feature Requirement
需要同时启用 "dyntest" 与 "std" 特性。
Implementations§
Trait Implementations§
Source§impl Drop for DynTestLock
impl Drop for DynTestLock
Auto Trait Implementations§
impl !RefUnwindSafe for DynTestLock
impl !UnwindSafe for DynTestLock
impl Freeze for DynTestLock
impl Send for DynTestLock
impl Sync for DynTestLock
impl Unpin for DynTestLock
impl UnsafeUnpin for DynTestLock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more