fn query<'a, W5500: Udp>(
        &mut self,
        w5500: &'a mut W5500,
    ) -> Result<Query<'a, W5500>, Error<W5500::Error>> {
        w5500.udp_bind(self.sn, self.port)?;
        w5500.set_sn_dest(self.sn, &self.server)?;
        const HEADER_SEEK: SeekFrom = SeekFrom::Start(Header::LEN);
        let mut writer: UdpWriter<W5500> = w5500.udp_writer(self.sn)?;
        writer.seek(HEADER_SEEK)?;
        let id: u16 = self.rng.next_u16();
        Ok(Query {
            writer,
            header: Header::new_query(id),
        })
    }
/// A simple DNS query.
///
/// This will only send a DNS or MDNS query, it will not wait for a reply.
A simple DNS query.
This will only send a DNS or MDNS query, it will not wait for a reply.
A simple DNS query . This will only send a DNS or MDNS query it will not wait for a reply .
fn query<'a, W5500: Udp>(
        &mut self,
        w5500: &'a mut W5500,
    ) -> Result<Query<'a, W5500>, Error<W5500::Error>> {
        w5500.udp_bind(self.sn, self.port)?;
        w5500.set_sn_dest(self.sn, &self.server)?;
        const HEADER_SEEK: SeekFrom = SeekFrom::Start(Header::LEN);
        let mut writer: UdpWriter<W5500> = w5500.udp_writer(self.sn)?;
        writer.seek(HEADER_SEEK)?;
        let id: u16 = self.rng.next_u16();
        Ok(Query {
            writer,
            header: Header::new_query(id),
        })
    }
fn query < ' a , W5500 : Udp > ( & mut self , w5500 : & ' a mut W5500 , ) -> Result < Query < ' a , W5500 > , Error < W5500 :: Error > > { w5500 . udp_bind ( self . sn , self . port ) ? ; w5500 . set_sn_dest ( self . sn , & self . server ) ? ; const HEADER_SEEK : SeekFrom = SeekFrom :: Start ( Header :: LEN ) ; let mut writer : UdpWriter < W5500 > = w5500 . udp_writer ( self . sn ) ? ; writer . seek ( HEADER_SEEK ) ? ; let id : u16 = self . rng . next_u16 ( ) ; Ok ( Query { writer , header : Header :: new_query ( id ) , } ) }
A simple DNS query.
A simple DNS query .
&mut self
w5500
&'a mut W5500
&mut self
w5500
&'a mut W5500