Enum docker_api::conn::Transport
source · pub enum Transport {
Tcp {
client: Client<HttpConnector<GaiResolver>, Body>,
host: Url,
},
EncryptedTcp {
client: Client<HttpsConnector<HttpConnector<GaiResolver>>, Body>,
host: Url,
},
Unix {
client: Client<UnixConnector, Body>,
path: PathBuf,
},
}
Expand description
Transports are types which define supported means of communication.
Variants§
Implementations§
source§impl Transport
impl Transport
pub fn remote_addr(&self) -> &str
pub fn make_uri(&self, ep: &str) -> Result<Uri, Error>
sourcepub async fn request(
&self,
req: Request<Body>
) -> impl Future<Output = Result<Response<Body>, Error>>
pub async fn request(
&self,
req: Request<Body>
) -> impl Future<Output = Result<Response<Body>, Error>>
Send the given request and return a Future of the response.