Lines Matching refs:SystemError

6 use system_error::SystemError;
46 pub fn read_u8(&mut self) -> Result<u8, SystemError> { in read_u8() argument
48 return Err(SystemError::E2BIG); in read_u8()
55 pub fn read_u16(&mut self) -> Result<u16, SystemError> { in read_u16() argument
57 return Err(SystemError::E2BIG); in read_u16()
69 pub fn read_u32(&mut self) -> Result<u32, SystemError> { in read_u32() argument
71 return Err(SystemError::E2BIG); in read_u32()
83 pub fn read_u64(&mut self) -> Result<u64, SystemError> { in read_u64() argument
85 return Err(SystemError::E2BIG); in read_u64()
102 pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), SystemError> { in read_exact() argument
104 return Err(SystemError::E2BIG); in read_exact()
114 pub fn read_u16_into(&mut self, buf: &mut [u16]) -> Result<(), SystemError> { in read_u16_into() argument
116 return Err(SystemError::E2BIG); in read_u16_into()
132 pub fn seek(&mut self, origin: SeekFrom) -> Result<usize, SystemError> { in seek() argument
146 return Err(SystemError::EINVAL); in seek()
151 return Err(SystemError::EOVERFLOW); in seek()
158 pub fn write_u8(&mut self, value: u8) -> Result<u8, SystemError> { in write_u8() argument
160 return Err(SystemError::E2BIG); in write_u8()
170 pub fn write_u16(&mut self, value: u16) -> Result<u16, SystemError> { in write_u16() argument
172 return Err(SystemError::E2BIG); in write_u16()
184 pub fn write_u32(&mut self, value: u32) -> Result<u32, SystemError> { in write_u32() argument
186 return Err(SystemError::E2BIG); in write_u32()
198 pub fn write_u64(&mut self, value: u64) -> Result<u64, SystemError> { in write_u64() argument
200 return Err(SystemError::E2BIG); in write_u64()
217 pub fn write_exact(&mut self, buf: &[u8]) -> Result<(), SystemError> { in write_exact() argument
219 return Err(SystemError::E2BIG); in write_exact()