pub type DeviceReadFrameResult = Result<Frame, i32>;
enum DeviceReadFrameResult { Ok(Frame), Err(i32), }
Contains the success value
Contains the error value