diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-05-18 13:42:48 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-05-18 13:42:48 +0200 |
commit | 29f8db08ae16e06c332481b7573aad7def7d2cc3 (patch) | |
tree | b75d27cd0f8c4c57ecd5fce8d7449c0c512e2f26 | |
parent | 53c33ab5fb80910dd4ab68847bf208dda5d3e52f (diff) |
Add getter for statestate
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-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 => {} |