use std::fs::*;
//...
let mut perms = metadata("Hello.txt").permissions();
//...
When I compile this I get a ^^^^^^^^^^^ method not found in std::result::Result<Metadata, std::io::Error> on the permissions() function. However the std::fs::Metadata documentation shows that it does exist.
Yep, so long as the result was ok. Otherwise, if the result was an error and tried unwrapping it, you'd cause a panic in the thread. You almost always want to error-handle though if you want to make clean software, so rarely use unwrap by itself