#[repr(C)]pub struct pw_mempool_events {
pub version: u32,
pub destroy: Option<unsafe extern "C" fn(data: *mut c_void)>,
pub added: Option<unsafe extern "C" fn(data: *mut c_void, block: *mut pw_memblock)>,
pub removed: Option<unsafe extern "C" fn(data: *mut c_void, block: *mut pw_memblock)>,
}
Fields§
§version: u32
§destroy: Option<unsafe extern "C" fn(data: *mut c_void)>
the pool is destroyed
added: Option<unsafe extern "C" fn(data: *mut c_void, block: *mut pw_memblock)>
a new memory block is added to the pool
removed: Option<unsafe extern "C" fn(data: *mut c_void, block: *mut pw_memblock)>
a memory block is removed from the pool
Trait Implementations§
Source§impl Clone for pw_mempool_events
impl Clone for pw_mempool_events
Source§fn clone(&self) -> pw_mempool_events
fn clone(&self) -> pw_mempool_events
Returns a duplicate 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 pw_mempool_events
impl Debug for pw_mempool_events
impl Copy for pw_mempool_events
Auto Trait Implementations§
impl Freeze for pw_mempool_events
impl RefUnwindSafe for pw_mempool_events
impl Send for pw_mempool_events
impl Sync for pw_mempool_events
impl Unpin for pw_mempool_events
impl UnwindSafe for pw_mempool_events
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