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§
Auto 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> UnsafeUnpin 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