pub struct IpifyProvider;Expand description
A provider that resolves the public IP address using the external api.ipify.org service.
Trait Implementations§
Source§impl ConfigProvider for IpifyProvider
impl ConfigProvider for IpifyProvider
Source§fn resolve<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ResolvedValue, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resolve<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ResolvedValue, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Resolves the configuration value asynchronously.
Source§fn resolve_sync(&self) -> Result<ResolvedValue, Error>
fn resolve_sync(&self) -> Result<ResolvedValue, Error>
Resolves the configuration value synchronously.
Auto Trait Implementations§
impl Forget for IpifyProvider
impl Freeze for IpifyProvider
impl Move for IpifyProvider
impl RefUnwindSafe for IpifyProvider
impl Send for IpifyProvider
impl Sync for IpifyProvider
impl Unpin for IpifyProvider
impl UnsafeUnpin for IpifyProvider
impl UnwindSafe for IpifyProvider
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