pub struct DnsInterceptor { /* private fields */ }Expand description
DNS query/response interceptor.
Owns the smoltcp UDP socket handle and channels to the async resolver
task. The poll loop calls process() each iteration to:
- Read pending queries from the smoltcp socket → send to resolver task.
- Read resolved responses from the channel → write to smoltcp socket.
Implementations§
Source§impl DnsInterceptor
impl DnsInterceptor
Auto Trait Implementations§
impl Freeze for DnsInterceptor
impl RefUnwindSafe for DnsInterceptor
impl Send for DnsInterceptor
impl Sync for DnsInterceptor
impl Unpin for DnsInterceptor
impl UnsafeUnpin for DnsInterceptor
impl UnwindSafe for DnsInterceptor
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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