#[repr(C)]
pub struct pw_client_node_methods { pub version: u32, pub add_listener: Option<unsafe extern "C" fn(object: *mut c_void, listener: *mut spa_hook, events: *const pw_client_node_events, data: *mut c_void) -> c_int>, pub get_node: Option<unsafe extern "C" fn(object: *mut c_void, version: u32, user_data_size: usize) -> *mut pw_node>, pub update: Option<unsafe extern "C" fn(object: *mut c_void, change_mask: u32, n_params: u32, params: *mut *const spa_pod, info: *const spa_node_info) -> c_int>, pub port_update: Option<unsafe extern "C" fn(object: *mut c_void, direction: spa_direction, port_id: u32, change_mask: u32, n_params: u32, params: *mut *const spa_pod, info: *const spa_port_info) -> c_int>, pub set_active: Option<unsafe extern "C" fn(object: *mut c_void, active: bool) -> c_int>, pub event: Option<unsafe extern "C" fn(object: *mut c_void, event: *const spa_event) -> c_int>, pub port_buffers: Option<unsafe extern "C" fn(object: *mut c_void, direction: spa_direction, port_id: u32, mix_id: u32, n_buffers: u32, buffers: *mut *mut spa_buffer) -> c_int>, }
Expand description

\ref pw_client_node methods

Fields§

§version: u32§add_listener: Option<unsafe extern "C" fn(object: *mut c_void, listener: *mut spa_hook, events: *const pw_client_node_events, data: *mut c_void) -> c_int>§get_node: Option<unsafe extern "C" fn(object: *mut c_void, version: u32, user_data_size: usize) -> *mut pw_node>

get the node object

§update: Option<unsafe extern "C" fn(object: *mut c_void, change_mask: u32, n_params: u32, params: *mut *const spa_pod, info: *const spa_node_info) -> c_int>

Update the node ports and properties

Update the maximum number of ports and the params of the client node. \param change_mask bitfield with changed parameters \param max_input_ports new max input ports \param max_output_ports new max output ports \param params new params

§port_update: Option<unsafe extern "C" fn(object: *mut c_void, direction: spa_direction, port_id: u32, change_mask: u32, n_params: u32, params: *mut *const spa_pod, info: *const spa_port_info) -> c_int>

Update a node port

Update the information of one port of a node. \param direction the direction of the port \param port_id the port id to update \param change_mask a bitfield of changed items \param n_params number of port parameters \param params array of port parameters \param info port information

§set_active: Option<unsafe extern "C" fn(object: *mut c_void, active: bool) -> c_int>

Activate or deactivate the node

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

Send an event to the node \param event the event to send

§port_buffers: Option<unsafe extern "C" fn(object: *mut c_void, direction: spa_direction, port_id: u32, mix_id: u32, n_buffers: u32, buffers: *mut *mut spa_buffer) -> c_int>

Send allocated buffers

Trait Implementations§

source§

impl Clone for pw_client_node_methods

source§

fn clone(&self) -> pw_client_node_methods

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_client_node_methods

source§

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

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

impl Copy for pw_client_node_methods

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.