blob: fb11da84b8dd9c8b7a4a041e0eb20d1f0fb24efd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
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")
}
}
|