pub struct ConnectOptions<R: Resolve + 'static> {
pub dns_resolver: Option<Arc<R>>,
pub ca_path: Option<String>,
}Expand description
Options for connecting to the Oso Service
Fields§
§dns_resolver: Option<Arc<R>>A custom DNS resolver. Can be useful for adding custom DNS servers.
Must implement the reqwest::dns::Resolve trait.
ca_path: Option<String>Path to another root CA certificate to trust when doing certificate validation. Useful for trusting certificates signed with an internal certificate authority.
Trait Implementations§
Source§impl<R: Clone + Resolve + 'static> Clone for ConnectOptions<R>
impl<R: Clone + Resolve + 'static> Clone for ConnectOptions<R>
Source§fn clone(&self) -> ConnectOptions<R>
fn clone(&self) -> ConnectOptions<R>
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 moreAuto Trait Implementations§
impl<R> Freeze for ConnectOptions<R>
impl<R> RefUnwindSafe for ConnectOptions<R>where
R: RefUnwindSafe,
impl<R> Send for ConnectOptions<R>
impl<R> Sync for ConnectOptions<R>
impl<R> Unpin for ConnectOptions<R>
impl<R> UnwindSafe for ConnectOptions<R>where
R: RefUnwindSafe,
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