(address: &str, port: u16)
| 19 | } |
| 20 | impl CommunicationChannel { |
| 21 | fn create(address: &str, port: u16) -> CommunicationChannel { |
| 22 | println!("Opening port {}:{}", address, port); |
| 23 | CommunicationChannel { |
| 24 | address: address.to_string(), |
| 25 | port: port, |
| 26 | } |
| 27 | } |
| 28 | fn send(&self, msg: &str) { |
| 29 | println!("Sent to {}:{} the message '{}'", |
| 30 | self.address, self.port, msg); |
nothing calls this directly
no outgoing calls
no test coverage detected