diff options
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -66,6 +66,10 @@ impl Pidlock { } } + pub fn state(&self) -> &PidlockState { + &self.state + } + pub fn acquire(&mut self) -> PidlockResult { match self.state { PidlockState::New => {} |