pub enum Transport {
Tcp {
client: Client<HttpConnector>,
host: String,
},
EncryptedTcp {
client: Client<HttpsConnector<HttpConnector>>,
host: String,
},
}
Expand description
Transports are types which define the means of communication with the docker daemon
Variants§
Implementations§
Source§impl Transport
impl Transport
Sourcepub async fn request<B, H>(
&self,
method: Method,
endpoint: impl AsRef<str>,
body: Option<(B, Mime)>,
headers: Option<H>,
) -> Result<String>
pub async fn request<B, H>( &self, method: Method, endpoint: impl AsRef<str>, body: Option<(B, Mime)>, headers: Option<H>, ) -> Result<String>
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
pub async fn stream_upgrade<B>( &self, method: Method, endpoint: impl AsRef<str>, body: Option<(B, Mime)>, ) -> Result<impl AsyncRead + AsyncWrite>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transport
impl !RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl !UnwindSafe for Transport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more