#[non_exhaustive]pub struct TargetAddressBuilder { /* private fields */ }Expand description
A builder for TargetAddress.
Implementations§
source§impl TargetAddressBuilder
impl TargetAddressBuilder
sourcepub fn ip(self, input: impl Into<String>) -> Self
pub fn ip(self, input: impl Into<String>) -> Self
One IPv4 address that you want to forward DNS queries to.
sourcepub fn set_ip(self, input: Option<String>) -> Self
pub fn set_ip(self, input: Option<String>) -> Self
One IPv4 address that you want to forward DNS queries to.
sourcepub fn get_ip(&self) -> &Option<String>
pub fn get_ip(&self) -> &Option<String>
One IPv4 address that you want to forward DNS queries to.
sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
The port at Ip that you want to forward DNS queries to.
sourcepub fn ipv6(self, input: impl Into<String>) -> Self
pub fn ipv6(self, input: impl Into<String>) -> Self
One IPv6 address that you want to forward DNS queries to.
sourcepub fn set_ipv6(self, input: Option<String>) -> Self
pub fn set_ipv6(self, input: Option<String>) -> Self
One IPv6 address that you want to forward DNS queries to.
sourcepub fn get_ipv6(&self) -> &Option<String>
pub fn get_ipv6(&self) -> &Option<String>
One IPv6 address that you want to forward DNS queries to.
sourcepub fn protocol(self, input: Protocol) -> Self
pub fn protocol(self, input: Protocol) -> Self
The protocols for the Resolver endpoints. DoH-FIPS is applicable for inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
sourcepub fn set_protocol(self, input: Option<Protocol>) -> Self
pub fn set_protocol(self, input: Option<Protocol>) -> Self
The protocols for the Resolver endpoints. DoH-FIPS is applicable for inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
sourcepub fn get_protocol(&self) -> &Option<Protocol>
pub fn get_protocol(&self) -> &Option<Protocol>
The protocols for the Resolver endpoints. DoH-FIPS is applicable for inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
sourcepub fn build(self) -> TargetAddress
pub fn build(self) -> TargetAddress
Consumes the builder and constructs a TargetAddress.
Trait Implementations§
source§impl Clone for TargetAddressBuilder
impl Clone for TargetAddressBuilder
source§fn clone(&self) -> TargetAddressBuilder
fn clone(&self) -> TargetAddressBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TargetAddressBuilder
impl Debug for TargetAddressBuilder
source§impl Default for TargetAddressBuilder
impl Default for TargetAddressBuilder
source§fn default() -> TargetAddressBuilder
fn default() -> TargetAddressBuilder
source§impl PartialEq for TargetAddressBuilder
impl PartialEq for TargetAddressBuilder
impl StructuralPartialEq for TargetAddressBuilder
Auto Trait Implementations§
impl Freeze for TargetAddressBuilder
impl RefUnwindSafe for TargetAddressBuilder
impl Send for TargetAddressBuilder
impl Sync for TargetAddressBuilder
impl Unpin for TargetAddressBuilder
impl UnwindSafe for TargetAddressBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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