Sha256: 0ab0291a20cd802099e9330140ad81778f60656185df1b3bd35b1aaabcd3476d
Contents?: true
Size: 956 Bytes
Versions: 37
Compression:
Stored size: 956 Bytes
Contents
use std::io::{self, Error, ErrorKind}; use std::os::unix::io::AsRawFd; use super::{RwLockReadGuard, RwLockWriteGuard}; #[derive(Debug)] pub struct RwLock<T: AsRawFd> { pub(crate) inner: T, } impl<T: AsRawFd> RwLock<T> { #[inline] pub fn new(inner: T) -> Self { panic!("target unsupported") } #[inline] pub fn write(&mut self) -> io::Result<RwLockWriteGuard<'_, T>> { panic!("target unsupported") } #[inline] pub fn try_write(&mut self) -> Result<RwLockWriteGuard<'_, T>, Error> { panic!("target unsupported") } #[inline] pub fn read(&self) -> io::Result<RwLockReadGuard<'_, T>> { panic!("target unsupported") } #[inline] pub fn try_read(&self) -> Result<RwLockReadGuard<'_, T>, Error> { panic!("target unsupported") } #[inline] pub fn into_inner(self) -> T where T: Sized, { panic!("target unsupported") } }
Version data entries
37 entries across 37 versions & 1 rubygems