Add a documentation note on addresses

This commit is contained in:
Tim Kuehn
2016-03-16 20:36:54 -07:00
parent e995acd4c9
commit 5d27d34bd3

View File

@@ -2,6 +2,8 @@ use std::io::{self, Read, Write};
use std::time::Duration;
/// A factory for creating a listener on a given address.
/// For TCP, an address might be an IPv4 address; for Unix sockets, it
/// is just a file name.
pub trait Transport {
/// The type of listener that binds to the given address.
type Listener: Listener;