Struct pipewire_sys::pw_impl_link_events 
source · #[repr(C)]pub struct pw_impl_link_events {
    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_link_info)>,
    pub state_changed: Option<unsafe extern "C" fn(data: *mut c_void, old: pw_link_state, state: pw_link_state, error: *const c_char)>,
    pub port_unlinked: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>,
}Expand description
link events added with \ref pw_impl_link_add_listener
Fields§
§version: u32§destroy: Option<unsafe extern "C" fn(data: *mut c_void)>A link is destroyed
free: Option<unsafe extern "C" fn(data: *mut c_void)>A link is freed
initialized: Option<unsafe extern "C" fn(data: *mut c_void)>a Link is initialized
info_changed: Option<unsafe extern "C" fn(data: *mut c_void, info: *const pw_link_info)>The info changed on a link
state_changed: Option<unsafe extern "C" fn(data: *mut c_void, old: pw_link_state, state: pw_link_state, error: *const c_char)>The link state changed, \a error is only valid when the state is in error.
port_unlinked: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>A port is unlinked
Trait Implementations§
source§impl Clone for pw_impl_link_events
 
impl Clone for pw_impl_link_events
source§fn clone(&self) -> pw_impl_link_events
 
fn clone(&self) -> pw_impl_link_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_link_events
 
impl Debug for pw_impl_link_events
impl Copy for pw_impl_link_events
Auto Trait Implementations§
impl RefUnwindSafe for pw_impl_link_events
impl Send for pw_impl_link_events
impl Sync for pw_impl_link_events
impl Unpin for pw_impl_link_events
impl UnwindSafe for pw_impl_link_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