pub struct UdpConnection { /* private fields */ }
Expand description
Connection for unconditionally sending and receiving DNS messages using UDP packets. The message ID of responses is checked to ensure it matches the request ID. If it does not, the response is discarded and the client will wait for another response until it gets one with a matching ID.
Implementations§
Trait Implementations§
Source§impl ClientFactory<SocketAddr, UdpConnection> for UdpConnectionFactory
impl ClientFactory<SocketAddr, UdpConnection> for UdpConnectionFactory
Source§async fn make(&self, address: &SocketAddr) -> Result<UdpConnection, MtopError>
async fn make(&self, address: &SocketAddr) -> Result<UdpConnection, MtopError>
Create a new client instance based on its ID.
Auto Trait Implementations§
impl Freeze for UdpConnection
impl !RefUnwindSafe for UdpConnection
impl Send for UdpConnection
impl Sync for UdpConnection
impl Unpin for UdpConnection
impl !UnwindSafe for UdpConnection
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