use super::poll::ManagedAvahiSimplePoll;
use crate::Result;
use crate::event_loop::TEventLoop;
use std::sync::Arc;
use std::time::Duration;
#[derive(new)]
pub struct AvahiEventLoop {
poll: Arc<ManagedAvahiSimplePoll>,
}
impl TEventLoop for AvahiEventLoop {
fn poll(&self, timeout: Duration) -> Result<()> {
unsafe { self.poll.iterate(timeout) }
}
}