pub fn safe_descriptor_from_path<P: AsRef<Path>>( path: P, ) -> Result<Option<SafeDescriptor>>
If the given path is of the form /proc/self/fd/N for some N, returns Ok(Some(N)). Otherwise returns Ok(None).
Ok(Some(N))
Ok(None)