(&mut self, addr: A)
| 25 | } |
| 26 | |
| 27 | pub fn connect_tcp<A: ToSocketAddrs>(&mut self, addr: A) -> NetResult<TcpConnectionId> { |
| 28 | let connection = TcpConnection::connect(addr)?; |
| 29 | Ok(TcpConnectionId(insert_slot( |
| 30 | &mut self.tcp_connections, |
| 31 | connection, |
| 32 | ))) |
| 33 | } |
| 34 | |
| 35 | pub fn bind_udp<A: ToSocketAddrs>(&mut self, addr: A) -> NetResult<UdpEndpointId> { |
| 36 | let endpoint = UdpEndpoint::bind(addr)?; |
nothing calls this directly
no test coverage detected