pub struct Transport { /* private fields */ }Expand description
The HTTP transport.
Implementations§
Source§impl Transport
impl Transport
Sourcepub fn new(http_client: Arc<dyn HttpClient>) -> Transport
pub fn new(http_client: Arc<dyn HttpClient>) -> Transport
Creates a new Transport using the given HttpClient.
Sourcepub fn with_policy(policy: Arc<dyn Policy>) -> Transport
pub fn with_policy(policy: Arc<dyn Policy>) -> Transport
Creates a new Transport using the custom policy.
This policy is expected to be the last policy in the pipeline.
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