MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / HandyRwLock

Interface HandyRwLock

toys/tikv-wrapper/src/util.rs:3–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1use std::sync::{RwLock, RwLockWriteGuard, RwLockReadGuard};
2
3pub trait HandyRwLock<T> {
4 fn wl(&self) -> RwLockWriteGuard<'_, T>;
5 fn rl(&self) -> RwLockReadGuard<'_, T>;
6}
7
8impl<T> HandyRwLock<T> for RwLock<T> {
9 fn wl(&self) -> RwLockWriteGuard<'_, T> {

Callers

nothing calls this directly

Implementers 1

util.rstoys/tikv-wrapper/src/util.rs

Calls

no outgoing calls

Tested by

no test coverage detected