pub struct DnsUpstreamConfig {
pub dns_name: String,
pub port: u16,
pub refresh_interval: Duration,
}Expand description
DNS-based dynamic upstream resolution configuration.
Fields§
§dns_name: StringDNS name to resolve, e.g. "app.svc.cluster.local".
port: u16Port to pair with resolved IPs.
refresh_interval: DurationHow often to re-resolve the DNS name.
Trait Implementations§
Source§impl Clone for DnsUpstreamConfig
impl Clone for DnsUpstreamConfig
Source§fn clone(&self) -> DnsUpstreamConfig
fn clone(&self) -> DnsUpstreamConfig
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 moreSource§impl Debug for DnsUpstreamConfig
impl Debug for DnsUpstreamConfig
Auto Trait Implementations§
impl Freeze for DnsUpstreamConfig
impl RefUnwindSafe for DnsUpstreamConfig
impl Send for DnsUpstreamConfig
impl Sync for DnsUpstreamConfig
impl Unpin for DnsUpstreamConfig
impl UnsafeUnpin for DnsUpstreamConfig
impl UnwindSafe for DnsUpstreamConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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