pub struct AvahiEventLoop { /* private fields */ }
Implementations§
Source§impl AvahiEventLoop
impl AvahiEventLoop
Sourcepub fn new(poll: Arc<ManagedAvahiSimplePoll>) -> Self
pub fn new(poll: Arc<ManagedAvahiSimplePoll>) -> Self
Constructs a new AvahiEventLoop
.
Trait Implementations§
Source§impl TEventLoop for AvahiEventLoop
impl TEventLoop for AvahiEventLoop
Source§fn poll(&self, timeout: Duration) -> Result<()>
fn poll(&self, timeout: Duration) -> Result<()>
Polls for new events.
Internally calls ManagedAvahiSimplePoll::iterate(..)
.
In systems where the C implementation of poll(.., timeout)
does not respect the timeout
parameter, the timeout
passed
here will have no effect – ie will return immediately.
Auto Trait Implementations§
impl Freeze for AvahiEventLoop
impl RefUnwindSafe for AvahiEventLoop
impl Send for AvahiEventLoop
impl Sync for AvahiEventLoop
impl Unpin for AvahiEventLoop
impl UnwindSafe for AvahiEventLoop
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