Extension trait for constructing a hyper HTTP client over a Vsock
| 171 | |
| 172 | /// Extension trait for constructing a hyper HTTP client over a Vsock |
| 173 | pub trait VsockClientExt<B: Body + Send> { |
| 174 | /// Construct a client which speaks HTTP over a Vsock domain socket |
| 175 | #[must_use] |
| 176 | fn vsock() -> Client<VsockConnector, B> |
| 177 | where |
| 178 | B::Data: Send, |
| 179 | { |
| 180 | Client::builder(TokioExecutor::new()).build(VsockConnector) |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | impl<B: Body + Send> VsockClientExt<B> for Client<VsockConnector, B> {} |
nothing calls this directly
no outgoing calls
no test coverage detected