Struct zeroconf::avahi::event_loop::AvahiEventLoop
source · pub struct AvahiEventLoop { /* private fields */ }
Implementations§
source§impl AvahiEventLoop
impl AvahiEventLoop
sourcepub fn new(poll: Rc<ManagedAvahiSimplePoll>) -> Self
pub fn new(poll: Rc<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 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