pub enum CoreProviderConfig {
Inline(InlineProviderConfig),
LocalFile(LocalFileProviderConfig),
RemoteFile(RemoteFileProviderConfig),
Command(CommandProviderConfig),
}Variants§
Inline(InlineProviderConfig)
LocalFile(LocalFileProviderConfig)
RemoteFile(RemoteFileProviderConfig)
Command(CommandProviderConfig)
Implementations§
Source§impl CoreProviderConfig
impl CoreProviderConfig
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 validate(&self) -> RealIpResult<()>
Trait Implementations§
Source§impl Clone for CoreProviderConfig
impl Clone for CoreProviderConfig
Source§fn clone(&self) -> CoreProviderConfig
fn clone(&self) -> CoreProviderConfig
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 CoreProviderConfig
impl Debug for CoreProviderConfig
Source§impl<'de> Deserialize<'de> for CoreProviderConfig
impl<'de> Deserialize<'de> for CoreProviderConfig
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 CoreProviderConfig
impl RefUnwindSafe for CoreProviderConfig
impl Send for CoreProviderConfig
impl Sync for CoreProviderConfig
impl Unpin for CoreProviderConfig
impl UnsafeUnpin for CoreProviderConfig
impl UnwindSafe for CoreProviderConfig
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