pub struct DNSSocket {
addresses: Vec<SocketAddr>,
socket: Option<Box<UdpSocket>>,
rx_thread: Option<JoinHandle<()>>,
rx_thread_killer: Option<Sender<()>>,
tx_thread: Option<JoinHandle<()>>,
tx_message_channel: Option<Sender<NetworkMessagePtr>>,
tx_thread_killer: Option<Sender<()>>,
}
Fields§
§addresses: Vec<SocketAddr>
§socket: Option<Box<UdpSocket>>
§rx_thread: Option<JoinHandle<()>>
§rx_thread_killer: Option<Sender<()>>
§tx_thread: Option<JoinHandle<()>>
§tx_message_channel: Option<Sender<NetworkMessagePtr>>
§tx_thread_killer: Option<Sender<()>>
Implementations§
source§impl DNSSocket
impl DNSSocket
pub fn new(addresses: Vec<SocketAddr>) -> DNSSocket
pub fn bind(&mut self)
fn get_socket_clone(&mut self) -> Option<Box<UdpSocket>>
pub fn run_rx(&mut self, message_sender: Sender<NetworkMessagePtr>)
pub fn run_tx(&mut self)
pub fn get_tx_message_channel(&mut self) -> Option<Sender<NetworkMessagePtr>>
pub fn stop(&mut self)
Auto Trait Implementations§
impl Freeze for DNSSocket
impl !RefUnwindSafe for DNSSocket
impl Send for DNSSocket
impl Sync for DNSSocket
impl Unpin for DNSSocket
impl !UnwindSafe for DNSSocket
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