Struct mhost::dns::Server
[−]
[src]
pub struct Server { pub ip_addr: IpAddr, pub port: u16, pub protocol: Protocol, pub source: Source, }
Fields
ip_addr: IpAddr
port: u16
protocol: Protocol
source: Source
Methods
impl Server
[src]
fn udp_from<T: Into<IpAddr>>(ip_addr: T, from: Source) -> Server
[src]
fn udp_from_with_port<T: Into<IpAddr>>(
ip_addr: T,
port: u16,
from: Source
) -> Server
[src]
ip_addr: T,
port: u16,
from: Source
) -> Server
fn as_socket_addr(&self) -> SocketAddr
[src]
Trait Implementations
impl Debug for Server
[src]
impl Clone for Server
[src]
fn clone(&self) -> Server
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more