(bytes: &[u8])
| 318 | local: SocketAddr, |
| 319 | } |
| 320 | |
| 321 | impl TcpHost { |
| 322 | pub fn bind<A: ToSocketAddrs>(addr: A) -> NetResult<Self> { |
| 323 | let listener = |
| 324 | TcpListener::bind(addr).map_err(|err| NetError::from_io(NetErrorKind::Bind, err))?; |
| 325 | listener |
no test coverage detected