You cannot do this for several reasons. Here is the definition of the method connect_clicked():
fn connect_clicked<F: Fn(Button) + 'static>(&self, f: F) -> u64
, , Fn 'static. , -, ( FnMut), - ( , 'static). , path, .
, gtk-rs , GTK , Send , , 'static bound, , FnMut. , -, .
, Rc<RefCell<..>> :
let path: Rc<RefCell<Option<String>>> = Rc::new(RefCell::new(None));
let captured_path = path.clone();
...
*captured_path.borrow_mut() = Some(filename);
Arc<Mutex<..>>, , , gtk-rs GTK , .