Sha256: b2c02e43c4a939370a65ec33b949246d4486118631e1178b79d8d8c83fc59d13
Contents?: true
Size: 814 Bytes
Versions: 37
Compression:
Stored size: 814 Bytes
Contents
use std::ops; use std::os::unix::io::AsRawFd; use super::RwLock; #[derive(Debug)] pub struct RwLockWriteGuard<'lock, T: AsRawFd> { lock: &'lock mut RwLock<T>, } impl<'lock, T: AsRawFd> RwLockWriteGuard<'lock, T> { pub(crate) fn new(lock: &'lock mut RwLock<T>) -> Self { panic!("target unsupported") } } impl<T: AsRawFd> ops::Deref for RwLockWriteGuard<'_, T> { type Target = T; #[inline] fn deref(&self) -> &Self::Target { panic!("target unsupported") } } impl<T: AsRawFd> ops::DerefMut for RwLockWriteGuard<'_, T> { #[inline] fn deref_mut(&mut self) -> &mut Self::Target { panic!("target unsupported") } } impl<T: AsRawFd> Drop for RwLockWriteGuard<'_, T> { #[inline] fn drop(&mut self) { panic!("target unsupported") } }
Version data entries
37 entries across 37 versions & 1 rubygems