pub struct ProviderRegistry { /* private fields */ }Implementations§
Source§impl ProviderRegistry
impl ProviderRegistry
pub async fn from_configs(configs: &[ProviderConfig]) -> RealIpResult<Self>
pub async fn from_configs_with_factories( configs: &[ProviderConfig], factories: &ProviderFactoryRegistry, ) -> RealIpResult<Self>
pub async fn snapshot(&self, name: &str) -> Option<ProviderSnapshot>
pub async fn all_cidrs(&self) -> Vec<IpNet>
Trait Implementations§
Source§impl Debug for ProviderRegistry
impl Debug for ProviderRegistry
Auto Trait Implementations§
impl Freeze for ProviderRegistry
impl RefUnwindSafe for ProviderRegistry
impl Send for ProviderRegistry
impl Sync for ProviderRegistry
impl Unpin for ProviderRegistry
impl UnsafeUnpin for ProviderRegistry
impl UnwindSafe for ProviderRegistry
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