update examples and add documentation

This commit is contained in:
zekro committed 2026-07-17 11:30:08 +02:00
1 parent 9e4e019660
commit e42d897d41
7 files changed
+34 -21

No files matched your search

+5 -5
View File
@@ -41,9 +41,9 @@ impl UnlockedCredentialManager {
}
fn main() {
let pw = LockedCredentialManager::new();
let mut pw = pw.unlock("pssst");
pw.set("foo", "bar");
let val = pw.get("foo");
pw.lock();
let pw_locked = LockedCredentialManager::new();
let mut pw_unlocked = pw_locked.unlock("pssst");
pw_unlocked.set("foo", "bar");
let val = pw_unlocked.get("foo");
let pw_locked = pw_unlocked.lock();
}