Struct pipewire_sys::pw_impl_client_events
source · #[repr(C)]pub struct pw_impl_client_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_client_info)>,
pub resource_added: Option<unsafe extern "C" fn(data: *mut c_void, resource: *mut pw_resource)>,
pub resource_removed: Option<unsafe extern "C" fn(data: *mut c_void, resource: *mut pw_resource)>,
pub busy_changed: Option<unsafe extern "C" fn(data: *mut c_void, busy: bool)>,
}
Expand description
The events that a client can emit
Fields§
§version: u32
§destroy: Option<unsafe extern "C" fn(data: *mut c_void)>
emitted when the client is destroyed
free: Option<unsafe extern "C" fn(data: *mut c_void)>
emitted right before the client is freed
initialized: Option<unsafe extern "C" fn(data: *mut c_void)>
the client is initialized
info_changed: Option<unsafe extern "C" fn(data: *mut c_void, info: *const pw_client_info)>
emitted when the client info changed
resource_added: Option<unsafe extern "C" fn(data: *mut c_void, resource: *mut pw_resource)>
emitted when a new resource is added for client
resource_removed: Option<unsafe extern "C" fn(data: *mut c_void, resource: *mut pw_resource)>
emitted when a resource is removed
busy_changed: Option<unsafe extern "C" fn(data: *mut c_void, busy: bool)>
emitted when the client becomes busy processing an asynchronous message. In the busy state no messages should be processed. Processing should resume when the client becomes not busy
Trait Implementations§
source§impl Clone for pw_impl_client_events
impl Clone for pw_impl_client_events
source§fn clone(&self) -> pw_impl_client_events
fn clone(&self) -> pw_impl_client_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_client_events
impl Debug for pw_impl_client_events
impl Copy for pw_impl_client_events
Auto Trait Implementations§
impl RefUnwindSafe for pw_impl_client_events
impl Send for pw_impl_client_events
impl Sync for pw_impl_client_events
impl Unpin for pw_impl_client_events
impl UnwindSafe for pw_impl_client_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