#[repr(C)]
pub struct pw_impl_node_events {
Show 17 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 port_init: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>, pub port_added: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>, pub port_removed: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>, pub info_changed: Option<unsafe extern "C" fn(data: *mut c_void, info: *const pw_node_info)>, pub port_info_changed: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port, info: *const pw_port_info)>, pub active_changed: Option<unsafe extern "C" fn(data: *mut c_void, active: bool)>, pub state_request: Option<unsafe extern "C" fn(data: *mut c_void, state: pw_node_state)>, pub state_changed: Option<unsafe extern "C" fn(data: *mut c_void, old: pw_node_state, state: pw_node_state, error: *const c_char)>, 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 driver_changed: Option<unsafe extern "C" fn(data: *mut c_void, old: *mut pw_impl_node, driver: *mut pw_impl_node)>, pub peer_added: Option<unsafe extern "C" fn(data: *mut c_void, peer: *mut pw_impl_node)>, pub peer_removed: Option<unsafe extern "C" fn(data: *mut c_void, peer: *mut pw_impl_node)>,
}
Expand description

Node events, listen to them with \ref pw_impl_node_add_listener

Fields§

§version: u32§destroy: Option<unsafe extern "C" fn(data: *mut c_void)>

the node is destroyed

§free: Option<unsafe extern "C" fn(data: *mut c_void)>

the node is about to be freed

§initialized: Option<unsafe extern "C" fn(data: *mut c_void)>

the node is initialized

§port_init: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>

a port is being initialized on the node

§port_added: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>

a port was added

§port_removed: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>

a port was removed

§info_changed: Option<unsafe extern "C" fn(data: *mut c_void, info: *const pw_node_info)>

the node info changed

§port_info_changed: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port, info: *const pw_port_info)>

a port on the node changed info

§active_changed: Option<unsafe extern "C" fn(data: *mut c_void, active: bool)>

the node active state changed

§state_request: Option<unsafe extern "C" fn(data: *mut c_void, state: pw_node_state)>

a new state is requested on the node

§state_changed: Option<unsafe extern "C" fn(data: *mut c_void, old: pw_node_state, state: pw_node_state, error: *const c_char)>

the state of the node changed

§result: Option<unsafe extern "C" fn(data: *mut c_void, seq: c_int, res: c_int, type_: u32, result: *const c_void)>

a result was received

§event: Option<unsafe extern "C" fn(data: *mut c_void, event: *const spa_event)>

an event is emitted

§driver_changed: Option<unsafe extern "C" fn(data: *mut c_void, old: *mut pw_impl_node, driver: *mut pw_impl_node)>

the driver of the node changed

§peer_added: Option<unsafe extern "C" fn(data: *mut c_void, peer: *mut pw_impl_node)>

a peer was added

§peer_removed: Option<unsafe extern "C" fn(data: *mut c_void, peer: *mut pw_impl_node)>

a peer was removed

Trait Implementations§

source§

impl Clone for pw_impl_node_events

source§

fn clone(&self) -> pw_impl_node_events

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for pw_impl_node_events

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for pw_impl_node_events

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.