Enum docker_api::transport::Transport [−][src]
pub enum Transport { Tcp { client: Client<HttpConnector>, host: String, }, EncryptedTcp { client: Client<HttpsConnector<HttpConnector>>, host: String, }, Unix { client: Client<UnixConnector>, path: String, }, }
Expand description
Transports are types which define the means of communication with the docker daemon
Variants
A network tcp interface
Show fields
Fields of Tcp
client: Client<HttpConnector>
host: String
TCP/TLS
Show fields
Fields of EncryptedTcp
client: Client<HttpsConnector<HttpConnector>>
host: String
A Unix domain socket
Show fields
Fields of Unix
client: Client<UnixConnector>
path: String
Implementations
Make a request and return the whole response in a String
pub fn stream_chunks<'stream, H, B>(
&'stream self,
method: Method,
endpoint: impl AsRef<str> + 'stream,
body: Option<(B, Mime)>,
headers: Option<H>
) -> impl Stream<Item = Result<Bytes>> + 'stream where
B: Into<Body> + 'stream,
H: IntoIterator<Item = (&'static str, String)> + 'stream,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Transport
impl !UnwindSafe for Transport
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more