pub struct ConsulConfigProvider { /* private fields */ }Implementations§
Source§impl ConsulConfigProvider
impl ConsulConfigProvider
pub fn new(options: ConsulConfigOptions) -> Self
pub async fn start_watch_loop(&self)
Trait Implementations§
Source§impl Clone for ConsulConfigProvider
impl Clone for ConsulConfigProvider
Source§impl ConfigProvider for ConsulConfigProvider
impl ConfigProvider for ConsulConfigProvider
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 str,
value: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn watch<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = String> + Send + Unpin>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for ConsulConfigProvider
impl !RefUnwindSafe for ConsulConfigProvider
impl Send for ConsulConfigProvider
impl Sync for ConsulConfigProvider
impl Unpin for ConsulConfigProvider
impl !UnwindSafe for ConsulConfigProvider
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