pub struct HttpTransporter { /* private fields */ }Expand description
Type-erased HTTP transport handle.
Implementations§
Source§impl HttpTransporter
impl HttpTransporter
Sourcepub fn new(transport: impl HttpTransport) -> Self
pub fn new(transport: impl HttpTransport) -> Self
Create a new HttpTransporter from an HttpTransport.
Sourcepub fn install_default(transport: impl HttpTransport)
pub fn install_default(transport: impl HttpTransport)
Install the process-wide default HTTP transport.
The first installed transport wins. Later calls are ignored.
Trait Implementations§
Source§impl Clone for HttpTransporter
impl Clone for HttpTransporter
Source§fn clone(&self) -> HttpTransporter
fn clone(&self) -> HttpTransporter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpTransporter
impl Debug for HttpTransporter
Source§impl Default for HttpTransporter
impl Default for HttpTransporter
Source§impl HttpSend for HttpTransporter
Available on crate feature reqsign only.
impl HttpSend for HttpTransporter
Available on crate feature
reqsign only.Auto Trait Implementations§
impl Freeze for HttpTransporter
impl !RefUnwindSafe for HttpTransporter
impl Send for HttpTransporter
impl Sync for HttpTransporter
impl Unpin for HttpTransporter
impl UnsafeUnpin for HttpTransporter
impl !UnwindSafe for HttpTransporter
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