ps_rwt/inner/methods/
try_read.rs

1use parking_lot::RwLockReadGuard;
2
3use crate::RWT;
4
5impl<R, W> RWT<R, W> {
6    #[must_use]
7    pub fn try_read(&self) -> Option<RwLockReadGuard<W>> {
8        self.writable.try_read()
9    }
10}