pub type ScanResult = Result<(), ScanError>;
A convenience alias for scanner functions that may fail without returning a value.
enum ScanResult { Ok(()), Err(ScanError), }
Contains the success value
Contains the error value