pub struct ManagedAvahiClient { /* private fields */ }
Expand description
Wraps the AvahiClient
type from the raw Avahi bindings.
This struct allocates a new *mut AvahiClient
when ManagedAvahiClient::new()
is invoked and
calls the Avahi function responsible for freeing the client on trait Drop
.
Implementations§
Source§impl ManagedAvahiClient
impl ManagedAvahiClient
Sourcepub unsafe fn new(_: ManagedAvahiClientParams) -> Result<Self>
pub unsafe fn new(_: ManagedAvahiClientParams) -> Result<Self>
Initializes the underlying *mut AvahiClient
and verifies it was created; returning
Err(String)
if unsuccessful.
§Safety
This function is unsafe because of the raw pointer dereference.
Trait Implementations§
Source§impl Debug for ManagedAvahiClient
impl Debug for ManagedAvahiClient
Source§impl Drop for ManagedAvahiClient
impl Drop for ManagedAvahiClient
impl Send for ManagedAvahiClient
impl Sync for ManagedAvahiClient
Auto Trait Implementations§
impl Freeze for ManagedAvahiClient
impl RefUnwindSafe for ManagedAvahiClient
impl Unpin for ManagedAvahiClient
impl UnwindSafe for ManagedAvahiClient
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