Enum containers_api::conn::transport::Transport
source · pub enum Transport {
Tcp {
client: Client<HttpConnector>,
host: Url,
},
EncryptedTcp {
client: Client<HttpsConnector<HttpConnector>>,
host: Url,
},
Unix {
client: Client<UnixConnector>,
path: PathBuf,
},
}Expand description
Transports are types which define supported means of communication.
Variants§
Tcp
A network tcp interface
EncryptedTcp
Available on crate feature
tls only.TCP/TLS
Unix
A Unix domain socket
Implementations§
source§impl Transport
impl Transport
pub fn remote_addr(&self) -> &str
pub fn make_uri(&self, ep: &str) -> Result<Uri>
sourcepub async fn request(&self, req: Request<Body>) -> Result<Response<Body>>
pub async fn request(&self, req: Request<Body>) -> Result<Response<Body>>
Send the given request and return a Future of the response.