pub struct AsyncSecureClientBuilder<F, S>where
F: Future<Output = Result<S, ProtoError>> + 'static + Send + Unpin,
S: DnsRequestSender + 'static,{ /* private fields */ }Available on crate feature
dnssec only.Expand description
A builder to allow a custom trust to be used for validating all signed records
Implementations§
Source§impl<F, S> AsyncSecureClientBuilder<F, S>where
F: Future<Output = Result<S, ProtoError>> + 'static + Send + Unpin,
S: DnsRequestSender + 'static,
impl<F, S> AsyncSecureClientBuilder<F, S>where
F: Future<Output = Result<S, ProtoError>> + 'static + Send + Unpin,
S: DnsRequestSender + 'static,
Sourcepub fn trust_anchor(self, trust_anchor: TrustAnchor) -> Self
pub fn trust_anchor(self, trust_anchor: TrustAnchor) -> Self
This variant allows for the trust_anchor to be replaced
§Arguments
trust_anchor- the set of trusted DNSKEY public_keys, by default this only contains the root public_key.
Sourcepub async fn build(
self,
) -> Result<(AsyncDnssecClient, DnsExchangeBackground<S, TokioTime>), ProtoError>
pub async fn build( self, ) -> Result<(AsyncDnssecClient, DnsExchangeBackground<S, TokioTime>), ProtoError>
Construct the new client
Auto Trait Implementations§
impl<F, S> Freeze for AsyncSecureClientBuilder<F, S>where
F: Freeze,
impl<F, S> RefUnwindSafe for AsyncSecureClientBuilder<F, S>where
F: RefUnwindSafe,
impl<F, S> Send for AsyncSecureClientBuilder<F, S>
impl<F, S> Sync for AsyncSecureClientBuilder<F, S>where
F: Sync,
impl<F, S> Unpin for AsyncSecureClientBuilder<F, S>
impl<F, S> UnwindSafe for AsyncSecureClientBuilder<F, S>where
F: UnwindSafe,
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