From 4670063ee9b530f10caaca6aafcbbfdf21f6c43e Mon Sep 17 00:00:00 2001 From: softprops Date: Sun, 3 Jan 2016 10:39:26 -0500 Subject: document transport --- src/transport.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/transport.rs') diff --git a/src/transport.rs b/src/transport.rs index 1eda618..da5c904 100644 --- a/src/transport.rs +++ b/src/transport.rs @@ -28,11 +28,15 @@ fn lift_status_err(status: u16) -> Result> { } } +/// Transports are types which define the means of communication +/// with the docker daemon pub enum Transport { + /// A network tcp interface Tcp { client: Client, host: String, }, + /// A Unix domain socket Unix { client: Client, path: String, @@ -67,7 +71,6 @@ impl Transport { endpoint: &str, body: Option) -> Result> { - println!("requesting {:?} {:?}", self, endpoint); let req = match *self { Transport::Tcp { ref client, ref host } => { client.request(method, &format!("{}{}", host, endpoint)[..]) -- cgit v1.2.3