MCPcopy Index your code
hub / github.com/Dstack-TEE/dstack / VsockClientExt

Interface VsockClientExt

http-client/src/hyper_vsock.rs:173–182  ·  view source on GitHub ↗

Extension trait for constructing a hyper HTTP client over a Vsock

Source from the content-addressed store, hash-verified

171
172/// Extension trait for constructing a hyper HTTP client over a Vsock
173pub 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
184impl<B: Body + Send> VsockClientExt<B> for Client<VsockConnector, B> {}

Callers

nothing calls this directly

Implementers 1

hyper_vsock.rshttp-client/src/hyper_vsock.rs

Calls

no outgoing calls

Tested by

no test coverage detected