pub struct MdnsServiceAsync { /* private fields */ }Expand description
Asynchronous mDNS service registration.
Implementations§
Source§impl MdnsServiceAsync
impl MdnsServiceAsync
Sourcepub fn new(service: MdnsService) -> Result<Self>
pub fn new(service: MdnsService) -> Result<Self>
Create a new asynchronous mDNS service.
Sourcepub async fn start_with_timeout(
&mut self,
timeout: Duration,
) -> Result<ServiceRegistration>
pub async fn start_with_timeout( &mut self, timeout: Duration, ) -> Result<ServiceRegistration>
Start the service with a timeout passed to the zeroconf::EventLoop.
Sourcepub async fn start(&mut self) -> Result<ServiceRegistration>
pub async fn start(&mut self) -> Result<ServiceRegistration>
Start the service.
Auto Trait Implementations§
impl Freeze for MdnsServiceAsync
impl !RefUnwindSafe for MdnsServiceAsync
impl !Send for MdnsServiceAsync
impl !Sync for MdnsServiceAsync
impl Unpin for MdnsServiceAsync
impl !UnwindSafe for MdnsServiceAsync
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