[−][src]Struct zeroconf::linux::raw_browser::ManagedAvahiServiceBrowser
Wraps the AvahiServiceBrowser
type from the raw Avahi bindings.
This struct allocates a new *mut AvahiServiceBrowser
when ManagedAvahiServiceBrowser::new()
is invoked and calls the Avahi function responsible for freeing the client on trait Drop
.
Implementations
impl ManagedAvahiServiceBrowser
[src]
pub fn new(
ManagedAvahiServiceBrowserParams { client: client, interface: interface, protocol: protocol, kind: kind, domain: domain, flags: flags, callback: callback, userdata: userdata }: ManagedAvahiServiceBrowserParams<'_>
) -> Result<Self, String>
[src]
ManagedAvahiServiceBrowserParams { client: client, interface: interface, protocol: protocol, kind: kind, domain: domain, flags: flags, callback: callback, userdata: userdata }: ManagedAvahiServiceBrowserParams<'_>
) -> Result<Self, String>
Intializes the underlying *mut AvahiClient
and verifies it was created; returning
Err(String)
if unsuccessful.
Trait Implementations
impl Debug for ManagedAvahiServiceBrowser
[src]
impl Drop for ManagedAvahiServiceBrowser
[src]
Auto Trait Implementations
impl RefUnwindSafe for ManagedAvahiServiceBrowser
impl !Send for ManagedAvahiServiceBrowser
impl !Sync for ManagedAvahiServiceBrowser
impl Unpin for ManagedAvahiServiceBrowser
impl UnwindSafe for ManagedAvahiServiceBrowser
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,