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