pub enum ProviderConfig {
Core(CoreProviderConfig),
Custom(CustomProviderConfig),
}Variants§
Core(CoreProviderConfig)
Custom(CustomProviderConfig)
Implementations§
Source§impl ProviderConfig
impl ProviderConfig
pub fn name(&self) -> &str
pub fn kind(&self) -> &str
pub fn refresh(&self) -> Option<Duration>
pub fn timeout(&self) -> Option<Duration>
pub fn on_refresh_failure(&self) -> RefreshFailurePolicy
pub fn max_stale(&self) -> Option<Duration>
pub fn watch_path(&self) -> Option<(&PathBuf, Duration)>
pub fn inline_cidrs(&self) -> Option<&[IpNet]>
pub fn local_file_path(&self) -> Option<&PathBuf>
pub fn remote_file_url(&self) -> Option<&str>
pub fn command_spec(&self) -> Option<(&str, &[String])>
pub fn custom(&self) -> Option<&CustomProviderConfig>
pub fn validate(&self) -> RealIpResult<()>
Trait Implementations§
Source§impl Clone for ProviderConfig
impl Clone for ProviderConfig
Source§fn clone(&self) -> ProviderConfig
fn clone(&self) -> ProviderConfig
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 ProviderConfig
impl Debug for ProviderConfig
Source§impl<'de> Deserialize<'de> for ProviderConfig
impl<'de> Deserialize<'de> for ProviderConfig
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin for ProviderConfig
impl UnsafeUnpin for ProviderConfig
impl UnwindSafe for ProviderConfig
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