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