pub struct Listener { /* private fields */ }Expand description
A DNS Listener serving UDP and TCP on the same address.
Implementations§
Source§impl Listener
impl Listener
pub async fn bind<H: Handler>(address: SocketAddr, handler: H) -> Result<Self>
pub fn local_addr(&self) -> SocketAddr
Trait Implementations§
Auto Trait Implementations§
impl Forget for Listener
impl Freeze for Listener
impl Move for Listener
impl RefUnwindSafe for Listener
impl Send for Listener
impl Sync for Listener
impl Unpin for Listener
impl UnsafeUnpin for Listener
impl UnwindSafe for Listener
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