#[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

source§

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)

Performs copy-assignment from source. Read more
source§

impl Debug for pw_impl_port_events

source§

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

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

impl Copy for pw_impl_port_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.