Struct webrtc_mdns::conn::DnsConn
source · pub struct DnsConn { /* private fields */ }
Implementations§
source§impl DnsConn
impl DnsConn
sourcepub fn server(addr: SocketAddr, config: Config) -> Result<Self, Error>
pub fn server(addr: SocketAddr, config: Config) -> Result<Self, Error>
server establishes a mDNS connection over an existing connection
sourcepub async fn query(
&self,
name: &str,
close_query_signal: Receiver<()>
) -> Result<(ResourceHeader, SocketAddr), Error>
pub async fn query( &self, name: &str, close_query_signal: Receiver<()> ) -> Result<(ResourceHeader, SocketAddr), Error>
Query sends mDNS Queries for the following name until either there’s a close signal or we get a result
Auto Trait Implementations§
impl !RefUnwindSafe for DnsConn
impl Send for DnsConn
impl Sync for DnsConn
impl Unpin for DnsConn
impl !UnwindSafe for DnsConn
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