pub struct ForwardZoneHandlerBuilder<P: ConnectionProvider> { /* private fields */ }Available on crate feature
resolver only.Expand description
A builder to construct a ForwardZoneHandler.
Created by ForwardZoneHandler::builder.
Implementations§
Source§impl<P: ConnectionProvider> ForwardZoneHandlerBuilder<P>
impl<P: ConnectionProvider> ForwardZoneHandlerBuilder<P>
Sourcepub fn with_origin(self, origin: Name) -> Self
pub fn with_origin(self, origin: Name) -> Self
Set the origin of the zone handler.
Sourcepub fn with_trust_anchor(self, trust_anchor: Arc<TrustAnchors>) -> Self
Available on crate feature __dnssec only.
pub fn with_trust_anchor(self, trust_anchor: Arc<TrustAnchors>) -> Self
__dnssec only.Enables DNSSEC validation, and sets the DNSSEC trust anchors to be used by the forward zone handler.
This overrides the trust anchor path in the ResolverOpts.
Sourcepub fn options_mut(&mut self) -> &mut ResolverOpts
pub fn options_mut(&mut self) -> &mut ResolverOpts
Returns a mutable reference to the ResolverOpts.
Sourcepub fn with_domain(self, domain: Name) -> Self
pub fn with_domain(self, domain: Name) -> Self
Set the system domain name.
Sourcepub fn with_search(self, search: Vec<Name>) -> Self
pub fn with_search(self, search: Vec<Name>) -> Self
Set the search domains.
Sourcepub fn build(self) -> Result<ForwardZoneHandler<P>, String>
pub fn build(self) -> Result<ForwardZoneHandler<P>, String>
Construct the zone handler.
Auto Trait Implementations§
impl<P> Freeze for ForwardZoneHandlerBuilder<P>where
P: Freeze,
impl<P> RefUnwindSafe for ForwardZoneHandlerBuilder<P>where
P: RefUnwindSafe,
impl<P> Send for ForwardZoneHandlerBuilder<P>
impl<P> Sync for ForwardZoneHandlerBuilder<P>
impl<P> Unpin for ForwardZoneHandlerBuilder<P>
impl<P> UnsafeUnpin for ForwardZoneHandlerBuilder<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for ForwardZoneHandlerBuilder<P>where
P: 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
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