Struct pipewire_sys::pw_impl_port_events
source · #[repr(C)]pub struct pw_impl_port_events {Show 13 fields
pub version: u32,
pub destroy: Option<unsafe extern "C" fn(data: *mut c_void)>,
pub free: Option<unsafe extern "C" fn(data: *mut c_void)>,
pub initialized: Option<unsafe extern "C" fn(data: *mut c_void)>,
pub info_changed: Option<unsafe extern "C" fn(data: *mut c_void, info: *const pw_port_info)>,
pub link_added: Option<unsafe extern "C" fn(data: *mut c_void, link: *mut pw_impl_link)>,
pub link_removed: Option<unsafe extern "C" fn(data: *mut c_void, link: *mut pw_impl_link)>,
pub state_changed: Option<unsafe extern "C" fn(data: *mut c_void, old: pw_impl_port_state, state: pw_impl_port_state, error: *const c_char)>,
pub control_added: Option<unsafe extern "C" fn(data: *mut c_void, control: *mut pw_control)>,
pub control_removed: Option<unsafe extern "C" fn(data: *mut c_void, control: *mut pw_control)>,
pub param_changed: Option<unsafe extern "C" fn(data: *mut c_void, id: u32)>,
pub latency_changed: Option<unsafe extern "C" fn(data: *mut c_void)>,
pub tag_changed: Option<unsafe extern "C" fn(data: *mut c_void)>,
}
Expand description
Port events, use \ref pw_impl_port_add_listener
Fields§
§version: u32
§destroy: Option<unsafe extern "C" fn(data: *mut c_void)>
The port is destroyed
free: Option<unsafe extern "C" fn(data: *mut c_void)>
The port is freed
initialized: Option<unsafe extern "C" fn(data: *mut c_void)>
The port is initialized
info_changed: Option<unsafe extern "C" fn(data: *mut c_void, info: *const pw_port_info)>
the port info changed
link_added: Option<unsafe extern "C" fn(data: *mut c_void, link: *mut pw_impl_link)>
a new link is added on this port
link_removed: Option<unsafe extern "C" fn(data: *mut c_void, link: *mut pw_impl_link)>
a link is removed from this port
state_changed: Option<unsafe extern "C" fn(data: *mut c_void, old: pw_impl_port_state, state: pw_impl_port_state, error: *const c_char)>
the state of the port changed
control_added: Option<unsafe extern "C" fn(data: *mut c_void, control: *mut pw_control)>
a control was added to the port
control_removed: Option<unsafe extern "C" fn(data: *mut c_void, control: *mut pw_control)>
a control was removed from the port
param_changed: Option<unsafe extern "C" fn(data: *mut c_void, id: u32)>
a parameter changed, since version 1
latency_changed: Option<unsafe extern "C" fn(data: *mut c_void)>
latency changed. Since version 2
tag_changed: Option<unsafe extern "C" fn(data: *mut c_void)>
tag changed. Since version 3
Trait Implementations§
source§impl Clone for pw_impl_port_events
impl Clone for pw_impl_port_events
source§fn clone(&self) -> pw_impl_port_events
fn clone(&self) -> pw_impl_port_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_impl_port_events
impl Debug for pw_impl_port_events
impl Copy for pw_impl_port_events
Auto Trait Implementations§
impl RefUnwindSafe for pw_impl_port_events
impl Send for pw_impl_port_events
impl Sync for pw_impl_port_events
impl Unpin for pw_impl_port_events
impl UnwindSafe for pw_impl_port_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