}
fn with_addresses_io<A: ToSocketAddr, T>(
- addr: A,
+ addr: A,
action: |&mut rtio::IoFactory, rtio::SocketAddr| -> Result<T, rtio::IoError>
) -> Result<T, IoError> {
const DEFAULT_ERROR: IoError = IoError {
}
impl TcpListener {
- /// Creates a new `TcpListener` which will be bound to the specified address.
- /// This listener is not ready for accepting connections, `listen` must be called
+ /// Creates a new `TcpListener` which will be bound to the specified address.
+ /// This listener is not ready for accepting connections, `listen` must be called
/// on it before that's possible.
///
/// Binding with a port number of 0 will request that the OS assigns a port