Struct libspa_sys::spa_loop_utils_methods
source · #[repr(C)]pub struct spa_loop_utils_methods {
pub version: u32,
pub add_io: Option<unsafe extern "C" fn(object: *mut c_void, fd: c_int, mask: u32, close: bool, func: spa_source_io_func_t, data: *mut c_void) -> *mut spa_source>,
pub update_io: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source, mask: u32) -> c_int>,
pub add_idle: Option<unsafe extern "C" fn(object: *mut c_void, enabled: bool, func: spa_source_idle_func_t, data: *mut c_void) -> *mut spa_source>,
pub enable_idle: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source, enabled: bool) -> c_int>,
pub add_event: Option<unsafe extern "C" fn(object: *mut c_void, func: spa_source_event_func_t, data: *mut c_void) -> *mut spa_source>,
pub signal_event: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source) -> c_int>,
pub add_timer: Option<unsafe extern "C" fn(object: *mut c_void, func: spa_source_timer_func_t, data: *mut c_void) -> *mut spa_source>,
pub update_timer: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source, value: *mut timespec, interval: *mut timespec, absolute: bool) -> c_int>,
pub add_signal: Option<unsafe extern "C" fn(object: *mut c_void, signal_number: c_int, func: spa_source_signal_func_t, data: *mut c_void) -> *mut spa_source>,
pub destroy_source: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source)>,
}
Expand description
Create sources for an event loop
Fields§
§version: u32
§add_io: Option<unsafe extern "C" fn(object: *mut c_void, fd: c_int, mask: u32, close: bool, func: spa_source_io_func_t, data: *mut c_void) -> *mut spa_source>
§update_io: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source, mask: u32) -> c_int>
§add_idle: Option<unsafe extern "C" fn(object: *mut c_void, enabled: bool, func: spa_source_idle_func_t, data: *mut c_void) -> *mut spa_source>
§enable_idle: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source, enabled: bool) -> c_int>
§add_event: Option<unsafe extern "C" fn(object: *mut c_void, func: spa_source_event_func_t, data: *mut c_void) -> *mut spa_source>
§signal_event: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source) -> c_int>
§add_timer: Option<unsafe extern "C" fn(object: *mut c_void, func: spa_source_timer_func_t, data: *mut c_void) -> *mut spa_source>
§update_timer: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source, value: *mut timespec, interval: *mut timespec, absolute: bool) -> c_int>
§add_signal: Option<unsafe extern "C" fn(object: *mut c_void, signal_number: c_int, func: spa_source_signal_func_t, data: *mut c_void) -> *mut spa_source>
§destroy_source: Option<unsafe extern "C" fn(object: *mut c_void, source: *mut spa_source)>
destroy a source allocated with this interface. This function should only be called when the loop is not running or from the context of the running loop
Trait Implementations§
source§impl Clone for spa_loop_utils_methods
impl Clone for spa_loop_utils_methods
source§fn clone(&self) -> spa_loop_utils_methods
fn clone(&self) -> spa_loop_utils_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_utils_methods
impl Debug for spa_loop_utils_methods
source§impl PartialEq for spa_loop_utils_methods
impl PartialEq for spa_loop_utils_methods
source§fn eq(&self, other: &spa_loop_utils_methods) -> bool
fn eq(&self, other: &spa_loop_utils_methods) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for spa_loop_utils_methods
impl Eq for spa_loop_utils_methods
impl StructuralPartialEq for spa_loop_utils_methods
Auto Trait Implementations§
impl RefUnwindSafe for spa_loop_utils_methods
impl Send for spa_loop_utils_methods
impl Sync for spa_loop_utils_methods
impl Unpin for spa_loop_utils_methods
impl UnwindSafe for spa_loop_utils_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