pub struct DiscoveryChannelConfig {
pub grpc: GrpcClientConfig,
pub resolve_interval: Duration,
}Expand description
Configuration for a DiscoveryChannel.
Fields§
§grpc: GrpcClientConfigBase gRPC client configuration.
resolve_interval: DurationHow often to poll for changes when no watcher is available. Defaults to 10 seconds.
Implementations§
Source§impl DiscoveryChannelConfig
impl DiscoveryChannelConfig
Sourcepub fn new(grpc: GrpcClientConfig) -> Self
pub fn new(grpc: GrpcClientConfig) -> Self
Create a config with defaults and the given gRPC settings.
Sourcepub fn with_resolve_interval(self, interval: Duration) -> Self
pub fn with_resolve_interval(self, interval: Duration) -> Self
Set the resolve polling interval.
Trait Implementations§
Source§impl Clone for DiscoveryChannelConfig
impl Clone for DiscoveryChannelConfig
Source§fn clone(&self) -> DiscoveryChannelConfig
fn clone(&self) -> DiscoveryChannelConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiscoveryChannelConfig
impl Debug for DiscoveryChannelConfig
Source§impl From<GrpcClientConfig> for DiscoveryChannelConfig
impl From<GrpcClientConfig> for DiscoveryChannelConfig
Source§fn from(grpc: GrpcClientConfig) -> Self
fn from(grpc: GrpcClientConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DiscoveryChannelConfig
impl !UnwindSafe for DiscoveryChannelConfig
impl Freeze for DiscoveryChannelConfig
impl Send for DiscoveryChannelConfig
impl Sync for DiscoveryChannelConfig
impl Unpin for DiscoveryChannelConfig
impl UnsafeUnpin for DiscoveryChannelConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request