pub struct DnsManager { /* private fields */ }Implementations§
Source§impl DnsManager
impl DnsManager
pub async fn new( config: DnsConfig, outbounds: &Outbounds, router: &Router, ) -> Result<Self>
pub async fn resolve(&self, addr: &Address) -> Result<SocketAddr>
pub async fn query( &self, peer_addr: SocketAddr, request: &DnsMessage, ) -> Result<DnsMessage>
Auto Trait Implementations§
impl !Freeze for DnsManager
impl !RefUnwindSafe for DnsManager
impl Send for DnsManager
impl Sync for DnsManager
impl Unpin for DnsManager
impl !UnwindSafe for DnsManager
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