pub struct DynamicUpstreamConfig {
pub dns_name: String,
pub port: u16,
pub refresh_interval: Duration,
}Expand description
Configuration for a DNS-based dynamic upstream source.
Fields§
§dns_name: StringDNS name to resolve, e.g. "app.svc.cluster.local".
port: u16Port to pair with resolved IPs (used for A/AAAA; ignored for SRV).
refresh_interval: DurationHow often to re-resolve.
Trait Implementations§
Source§impl Clone for DynamicUpstreamConfig
impl Clone for DynamicUpstreamConfig
Source§fn clone(&self) -> DynamicUpstreamConfig
fn clone(&self) -> DynamicUpstreamConfig
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 moreAuto Trait Implementations§
impl Freeze for DynamicUpstreamConfig
impl RefUnwindSafe for DynamicUpstreamConfig
impl Send for DynamicUpstreamConfig
impl Sync for DynamicUpstreamConfig
impl Unpin for DynamicUpstreamConfig
impl UnsafeUnpin for DynamicUpstreamConfig
impl UnwindSafe for DynamicUpstreamConfig
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