Trait TEventLoop

Source
pub trait TEventLoop {
    // Required method
    fn poll(&self, timeout: Duration) -> Result<(), Error>;
}
Expand description

A handle on the underlying implementation to poll the event loop. Typically, poll() is called in a loop to keep a MdnsService or MdnsBrowser running.

Required Methods§

Source

fn poll(&self, timeout: Duration) -> Result<(), Error>

Polls for new events.

Implementors§