Struct libspa_sys::spa_loop_methods
source · #[repr(C)]pub struct spa_loop_methods {
pub version: u32,
pub add_source: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source) -> c_int>,
pub update_source: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source) -> c_int>,
pub remove_source: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source) -> c_int>,
pub invoke: Option<unsafe extern "C" fn(object: *mut c_void, func: spa_invoke_func_t, seq: u32, data: *const c_void, size: usize, block: bool, user_data: *mut c_void) -> c_int>,
}
Expand description
Register sources and work items to an event loop
Fields§
§version: u32
§add_source: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source) -> c_int>
add a source to the loop
update_source: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source) -> c_int>
update the source io mask
remove_source: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source) -> c_int>
remove a source from the loop
invoke: Option<unsafe extern "C" fn(object: *mut c_void, func: spa_invoke_func_t, seq: u32, data: *const c_void, size: usize, block: bool, user_data: *mut c_void) -> c_int>
invoke a function in the context of this loop
Trait Implementations§
source§impl Clone for spa_loop_methods
impl Clone for spa_loop_methods
source§fn clone(&self) -> spa_loop_methods
fn clone(&self) -> spa_loop_methods
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_methods
impl Debug for spa_loop_methods
source§impl PartialEq for spa_loop_methods
impl PartialEq for spa_loop_methods
source§fn eq(&self, other: &spa_loop_methods) -> bool
fn eq(&self, other: &spa_loop_methods) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for spa_loop_methods
impl Eq for spa_loop_methods
impl StructuralPartialEq for spa_loop_methods
Auto Trait Implementations§
impl RefUnwindSafe for spa_loop_methods
impl Send for spa_loop_methods
impl Sync for spa_loop_methods
impl Unpin for spa_loop_methods
impl UnwindSafe for spa_loop_methods
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