Function opener::open [−][src]
pub fn open<P>(path: P) -> Result<(), OpenError> where
P: AsRef<OsStr>,
Opens a file or link with the system default program.
Note that a result of Ok(())
just means a way of opening the path was found, and no error
occurred as a direct result of opening the path. Errors beyond that point aren't caught. For
example, Ok(())
would be returned even if a file was opened with a program that can't read the
file, or a dead link was opened in a browser.