pub fn gen_error( _buf: (&mut [u8], usize), error: u32, ) -> Result<(&mut [u8], usize), GenError>
Generator that returns specified error.