Struct libspa_sys::spa_device_events
source · #[repr(C)]pub struct spa_device_events {
pub version: u32,
pub info: Option<unsafe extern "C" fn(data: *mut c_void, info: *const spa_device_info)>,
pub result: Option<unsafe extern "C" fn(data: *mut c_void, seq: c_int, res: c_int, type_: u32, result: *const c_void)>,
pub event: Option<unsafe extern "C" fn(data: *mut c_void, event: *const spa_event)>,
pub object_info: Option<unsafe extern "C" fn(data: *mut c_void, id: u32, info: *const spa_device_object_info)>,
}
Expand description
spa_device_events:
Events are always emitted from the main thread
Fields§
§version: u32
§info: Option<unsafe extern "C" fn(data: *mut c_void, info: *const spa_device_info)>
notify extra information about the device
result: Option<unsafe extern "C" fn(data: *mut c_void, seq: c_int, res: c_int, type_: u32, result: *const c_void)>
notify a result
event: Option<unsafe extern "C" fn(data: *mut c_void, event: *const spa_event)>
a device event
object_info: Option<unsafe extern "C" fn(data: *mut c_void, id: u32, info: *const spa_device_object_info)>
info changed for an object managed by the device, info is NULL when the object is removed
Trait Implementations§
source§impl Clone for spa_device_events
impl Clone for spa_device_events
source§fn clone(&self) -> spa_device_events
fn clone(&self) -> spa_device_events
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_device_events
impl Debug for spa_device_events
source§impl PartialEq for spa_device_events
impl PartialEq for spa_device_events
source§fn eq(&self, other: &spa_device_events) -> bool
fn eq(&self, other: &spa_device_events) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for spa_device_events
impl Eq for spa_device_events
impl StructuralPartialEq for spa_device_events
Auto Trait Implementations§
impl RefUnwindSafe for spa_device_events
impl Send for spa_device_events
impl Sync for spa_device_events
impl Unpin for spa_device_events
impl UnwindSafe for spa_device_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