#[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, iface: *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, iface: *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 iface 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 duplicate 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
impl Copy for spa_handle
impl Eq for spa_handle
impl StructuralPartialEq for spa_handle
Auto Trait Implementations§
impl Freeze for spa_handle
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