mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-02-23 15:49:54 +01:00
Add a documentation note on addresses
This commit is contained in:
@@ -2,6 +2,8 @@ use std::io::{self, Read, Write};
|
|||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
/// A factory for creating a listener on a given address.
|
/// 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 {
|
pub trait Transport {
|
||||||
/// The type of listener that binds to the given address.
|
/// The type of listener that binds to the given address.
|
||||||
type Listener: Listener;
|
type Listener: Listener;
|
||||||
|
|||||||
Reference in New Issue
Block a user