pub struct SrvUpstreamConfig {
pub service_name: String,
pub refresh_interval: Duration,
}Expand description
SRV-record-based dynamic upstream resolution configuration.
Fields§
§service_name: StringDNS SRV service name, e.g. "_http._tcp.example.com".
refresh_interval: DurationHow often to re-resolve the SRV records.
Trait Implementations§
Source§impl Clone for SrvUpstreamConfig
impl Clone for SrvUpstreamConfig
Source§fn clone(&self) -> SrvUpstreamConfig
fn clone(&self) -> SrvUpstreamConfig
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 SrvUpstreamConfig
impl Debug for SrvUpstreamConfig
Auto Trait Implementations§
impl Freeze for SrvUpstreamConfig
impl RefUnwindSafe for SrvUpstreamConfig
impl Send for SrvUpstreamConfig
impl Sync for SrvUpstreamConfig
impl Unpin for SrvUpstreamConfig
impl UnsafeUnpin for SrvUpstreamConfig
impl UnwindSafe for SrvUpstreamConfig
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