Enum shadowsocks_service::local::dns::config::NameServerAddr
source · [−]pub enum NameServerAddr {
SocketAddr(SocketAddr),
UnixSocketAddr(PathBuf),
}
Expand description
DNS name server address
Variants
SocketAddr(SocketAddr)
IP address
UnixSocketAddr(PathBuf)
Unix Domain Socket address
Specifically used by Android, which served as a stream protocol based DNS server
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for NameServerAddr
impl Send for NameServerAddr
impl Sync for NameServerAddr
impl Unpin for NameServerAddr
impl UnwindSafe for NameServerAddr
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more