Skip to main content

get_hash

Function get_hash 

Source
pub fn get_hash(source: &str, hash_type: HashType) -> Result<String>
Expand description

Calculates the hash of a file or remote URL.

ยงErrors

Returns an error if the file cannot be opened or read, or if the remote URL cannot be downloaded.