Struct libspa_sys::spa_loop_control_hooks
source · #[repr(C)]pub struct spa_loop_control_hooks {
pub version: u32,
pub before: Option<unsafe extern "C" fn(data: *mut c_void)>,
pub after: Option<unsafe extern "C" fn(data: *mut c_void)>,
}
Expand description
Control hooks. These hooks can’t be removed from their callbacks and must be removed from a safe place (when the loop is not running or when it is locked).
Fields§
§version: u32
§before: Option<unsafe extern "C" fn(data: *mut c_void)>
Executed right before waiting for events. It is typically used to release locks.
after: Option<unsafe extern "C" fn(data: *mut c_void)>
Executed right after waiting for events. It is typically used to reacquire locks.
Trait Implementations§
source§impl Clone for spa_loop_control_hooks
impl Clone for spa_loop_control_hooks
source§fn clone(&self) -> spa_loop_control_hooks
fn clone(&self) -> spa_loop_control_hooks
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 spa_loop_control_hooks
impl Debug for spa_loop_control_hooks
source§impl PartialEq for spa_loop_control_hooks
impl PartialEq for spa_loop_control_hooks
source§fn eq(&self, other: &spa_loop_control_hooks) -> bool
fn eq(&self, other: &spa_loop_control_hooks) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for spa_loop_control_hooks
impl Eq for spa_loop_control_hooks
impl StructuralPartialEq for spa_loop_control_hooks
Auto Trait Implementations§
impl RefUnwindSafe for spa_loop_control_hooks
impl Send for spa_loop_control_hooks
impl Sync for spa_loop_control_hooks
impl Unpin for spa_loop_control_hooks
impl UnwindSafe for spa_loop_control_hooks
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