Struct pipewire_sys::pw_device_events
source · #[repr(C)]pub struct pw_device_events {
pub version: u32,
pub info: Option<unsafe extern "C" fn(data: *mut c_void, info: *const pw_device_info)>,
pub param: Option<unsafe extern "C" fn(data: *mut c_void, seq: c_int, id: u32, index: u32, next: u32, param: *const spa_pod)>,
}
Expand description
Device events
Fields§
§version: u32
§info: Option<unsafe extern "C" fn(data: *mut c_void, info: *const pw_device_info)>
Notify device info
\param info info about the device
param: Option<unsafe extern "C" fn(data: *mut c_void, seq: c_int, id: u32, index: u32, next: u32, param: *const spa_pod)>
Notify a device param
Event emitted as a result of the enum_params method.
\param seq the sequence number of the request \param id the param id \param index the param index \param next the param index of the next param \param param the parameter
Trait Implementations§
source§impl Clone for pw_device_events
impl Clone for pw_device_events
source§fn clone(&self) -> pw_device_events
fn clone(&self) -> pw_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 pw_device_events
impl Debug for pw_device_events
impl Copy for pw_device_events
Auto Trait Implementations§
impl RefUnwindSafe for pw_device_events
impl Send for pw_device_events
impl Sync for pw_device_events
impl Unpin for pw_device_events
impl UnwindSafe for pw_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