Skip to main content

DNS_PORT

Static DNS_PORT 

Source
pub static DNS_PORT: OnceCell<u16>
Expand description

Global DNS port number.

This static cell stores the port number that the DNS server is running on. It is set once when start is called and remains constant thereafter.

ยงExample

use Mist::dns_port;

// Returns the port number, or 0 if the server hasn't been started
let port = dns_port();