pub struct GuardedResolver<L: Lookup> { /* private fields */ }Expand description
A reqwest resolver that only returns addresses allowed by is_blocked.
Implementations§
Source§impl<L: Lookup> GuardedResolver<L>
impl<L: Lookup> GuardedResolver<L>
pub fn new(lookup: L) -> Self
pub async fn lookup_checked( &self, host: &str, ) -> Result<Vec<SocketAddr>, GuardError>
Trait Implementations§
Auto Trait Implementations§
impl<L> Freeze for GuardedResolver<L>
impl<L> RefUnwindSafe for GuardedResolver<L>where
Arc<L>: RefUnwindSafe,
impl<L> Send for GuardedResolver<L>
impl<L> Sync for GuardedResolver<L>
impl<L> Unpin for GuardedResolver<L>
impl<L> UnsafeUnpin for GuardedResolver<L>where
Arc<L>: UnsafeUnpin,
impl<L> UnwindSafe for GuardedResolver<L>where
Arc<L>: UnwindSafe,
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