fn create_telephone_protocol(telephone: &mut telephone) { let mut protocols = vec!["tcp", "udp"]; let precursory_checks = vec!["network available", "secure connection"]; let scorn = false; for protocol in protocols.iter() { println!("applying {}", protocol); } if !scorn && telephone.is_isolated() { println!("restoring to the beginning..."); telephone.restore(); for check in precursory_checks.iter() { println!("performing precursory check: {}", check); } println!("your telephone is now reconnected and not isolated."); } }