Skip to main content

read

Function read 

Source
pub fn read(path: &Path) -> Result<Option<MachineId>, MachineIdFileError>
Expand description

Read and validate the machine id at path. Ok(None) means the file does not exist; any other read failure, or content that is not exactly 32 lowercase hex characters (one trailing newline allowed), is an error.