Struct avahi_sys::AvahiAllocator
source · #[repr(C)]pub struct AvahiAllocator {
pub malloc: Option<unsafe extern "C" fn(size: usize) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(p: *mut c_void)>,
pub realloc: Option<unsafe extern "C" fn(p: *mut c_void, size: usize) -> *mut c_void>,
pub calloc: Option<unsafe extern "C" fn(nmemb: usize, size: usize) -> *mut c_void>,
}
Fields§
§malloc: Option<unsafe extern "C" fn(size: usize) -> *mut c_void>
§free: Option<unsafe extern "C" fn(p: *mut c_void)>
§realloc: Option<unsafe extern "C" fn(p: *mut c_void, size: usize) -> *mut c_void>
§calloc: Option<unsafe extern "C" fn(nmemb: usize, size: usize) -> *mut c_void>
Trait Implementations§
source§impl Clone for AvahiAllocator
impl Clone for AvahiAllocator
source§fn clone(&self) -> AvahiAllocator
fn clone(&self) -> AvahiAllocator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AvahiAllocator
impl Debug for AvahiAllocator
impl Copy for AvahiAllocator
Auto Trait Implementations§
impl RefUnwindSafe for AvahiAllocator
impl Send for AvahiAllocator
impl Sync for AvahiAllocator
impl Unpin for AvahiAllocator
impl UnwindSafe for AvahiAllocator
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