pub struct TransportOptions { /* private fields */ }
Expand description
Transport options.
Implementations§
source§impl TransportOptions
impl TransportOptions
sourcepub fn new(http_client: Arc<dyn HttpClient>) -> Self
pub fn new(http_client: Arc<dyn HttpClient>) -> Self
Creates a new TransportOptions
using the given HttpClient
.
sourcepub fn new_custom_policy(policy: Arc<dyn Policy>) -> Self
pub fn new_custom_policy(policy: Arc<dyn Policy>) -> Self
Creates a new TransportOptions
using the custom policy.
This policy is expected to be the last policy in the pipeline.
Trait Implementations§
source§impl Clone for TransportOptions
impl Clone for TransportOptions
source§fn clone(&self) -> TransportOptions
fn clone(&self) -> TransportOptions
Returns a copy 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 TransportOptions
impl Debug for TransportOptions
Auto Trait Implementations§
impl Freeze for TransportOptions
impl !RefUnwindSafe for TransportOptions
impl Send for TransportOptions
impl Sync for TransportOptions
impl Unpin for TransportOptions
impl !UnwindSafe for TransportOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)