Struct libspa_sys::spa_handle
source · #[repr(C)]pub struct spa_handle {
pub version: u32,
pub get_interface: Option<unsafe extern "C" fn(handle: *mut spa_handle, type_: *const c_char, interface: *mut *mut c_void) -> c_int>,
pub clear: Option<unsafe extern "C" fn(handle: *mut spa_handle) -> c_int>,
}
Expand description
\addtogroup spa_handle {
Fields§
§version: u32
§get_interface: Option<unsafe extern "C" fn(handle: *mut spa_handle, type_: *const c_char, interface: *mut *mut c_void) -> c_int>
Get the interface provided by \a handle with \a type.
\a interface is always a struct spa_interface but depending on \a type, the struct might contain other information.
\param handle a spa_handle \param type the interface type \param interface result to hold the interface. \return 0 on success -ENOTSUP when there are no interfaces -EINVAL when handle or info is NULL
clear: Option<unsafe extern "C" fn(handle: *mut spa_handle) -> c_int>
Clean up the memory of \a handle. After this, \a handle should not be used anymore.
\param handle a pointer to memory \return 0 on success
Trait Implementations§
source§impl Clone for spa_handle
impl Clone for spa_handle
source§fn clone(&self) -> spa_handle
fn clone(&self) -> spa_handle
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 spa_handle
impl Debug for spa_handle
source§impl PartialEq for spa_handle
impl PartialEq for spa_handle
source§fn eq(&self, other: &spa_handle) -> bool
fn eq(&self, other: &spa_handle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for spa_handle
impl Eq for spa_handle
impl StructuralPartialEq for spa_handle
Auto Trait Implementations§
impl RefUnwindSafe for spa_handle
impl Send for spa_handle
impl Sync for spa_handle
impl Unpin for spa_handle
impl UnwindSafe for spa_handle
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