Lines Matching refs:io
19 use std::io;
30 ) -> io::Result<usize> { in remote_read_chunk()
32 .map_err(|_| io::Error::from_raw_os_error(libc::EOVERFLOW))?; in remote_read_chunk()
36 .map_err(|e| io::Error::new(io::ErrorKind::Other, e.get_description()))?; in remote_read_chunk()
56 ) -> io::Result<Self> { in new_by_path()
59 io::Error::new( in new_by_path()
60 io::ErrorKind::Other, in new_by_path()
77 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
94 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
96 .map_err(|_| io::Error::from_raw_os_error(libc::EOVERFLOW))?; in read_chunk()
101 .map_err(|e| io::Error::new(io::ErrorKind::Other, e.get_description()))?; in read_chunk()
120 fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize> { in write_at()
122 i64::try_from(offset).map_err(|_| io::Error::from_raw_os_error(libc::EOVERFLOW))?; in write_at()
126 .map_err(|e| io::Error::new(io::ErrorKind::Other, e.get_description()))?; in write_at()
130 fn resize(&self, size: u64) -> io::Result<()> { in resize()
132 i64::try_from(size).map_err(|_| io::Error::from_raw_os_error(libc::EOVERFLOW))?; in resize()
135 .map_err(|e| io::Error::new(io::ErrorKind::Other, e.get_description()))?; in resize()
141 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()