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
139 return Err(SystemError::EINVAL); in seek()
144 return Err(SystemError::EOVERFLOW); in seek()
151 pub fn write_u8(&mut self, value: u8) -> Result<u8, SystemError> { in write_u8() argument
153 return Err(SystemError::E2BIG); in write_u8()
163 pub fn write_u16(&mut self, value: u16) -> Result<u16, SystemError> { in write_u16() argument
165 return Err(SystemError::E2BIG); in write_u16()
177 pub fn write_u32(&mut self, value: u32) -> Result<u32, SystemError> { in write_u32() argument
179 return Err(SystemError::E2BIG); in write_u32()
191 pub fn write_u64(&mut self, value: u64) -> Result<u64, SystemError> { in write_u64() argument
193 return Err(SystemError::E2BIG); in write_u64()
210 pub fn write_exact(&mut self, buf: &[u8]) -> Result<(), SystemError> { in write_exact() argument
212 return Err(SystemError::E2BIG); in write_exact()