Struct azure_core::TransportOptions
source · 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 more