diff options
author | softprops <d.tangren@gmail.com> | 2015-04-30 23:32:41 -0400 |
---|---|---|
committer | softprops <d.tangren@gmail.com> | 2015-04-30 23:32:41 -0400 |
commit | 04de603226083c8fc41b1ceaa6150064d545bf8b (patch) | |
tree | 1b0b72a03eab97abdaeda193a1c339ee3915482c /src/transport.rs | |
parent | 20cb5d48abde956bdc9633a59d62af7f1e28978c (diff) |
docs
Diffstat (limited to 'src/transport.rs')
-rw-r--r-- | src/transport.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport.rs b/src/transport.rs index 728215e..4ea78c9 100644 --- a/src/transport.rs +++ b/src/transport.rs @@ -1,3 +1,5 @@ +//! Transports for communicating with the docker daemon + extern crate hyper; extern crate mime; extern crate unix_socket; @@ -29,6 +31,7 @@ impl<'a> Body<'a> { } } +/// Primary interface for communicating with docker daemon pub trait Transport { fn request(&mut self, method: Method, endpoint: &str, body: Option<Body>) -> Result<String>; fn stream(&mut self, method: Method, endpoint: &str, body: Option<Body>) -> Result<Box<Read>>; |