pub struct ConnectionOptions<C = Credentials> {
pub http_client: Client,
pub trusted_descriptors: DescriptorKeyring,
pub credential: C,
pub timeout: Duration,
pub tls_ca_certificate_pem: Option<String>,
}Expand description
Explicit inputs for a hosted connection. Files, environment, TLS policy, credential storage and trust-anchor selection belong to the application.
Fields§
§http_client: Client§trusted_descriptors: DescriptorKeyring§credential: C§timeout: Duration§tls_ca_certificate_pem: Option<String>Same PEM unary HTTPS already merged into reqwest (HEDDLE_REMOTE_TLS_CA_CERT).
Auto Trait Implementations§
impl<C = Credentials> !RefUnwindSafe for ConnectionOptions<C>
impl<C = Credentials> !UnwindSafe for ConnectionOptions<C>
impl<C> Freeze for ConnectionOptions<C>where
C: Freeze,
impl<C> Send for ConnectionOptions<C>where
C: Send,
impl<C> Sync for ConnectionOptions<C>where
C: Sync,
impl<C> Unpin for ConnectionOptions<C>where
C: Unpin,
impl<C> UnsafeUnpin for ConnectionOptions<C>where
C: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more