Struct libspa_sys::spa_dbus_connection
source · #[repr(C)]pub struct spa_dbus_connection {
pub version: u32,
pub get: Option<unsafe extern "C" fn(conn: *mut spa_dbus_connection) -> *mut c_void>,
pub destroy: Option<unsafe extern "C" fn(conn: *mut spa_dbus_connection)>,
pub add_listener: Option<unsafe extern "C" fn(conn: *mut spa_dbus_connection, listener: *mut spa_hook, events: *const spa_dbus_connection_events, data: *mut c_void)>,
}
Fields§
§version: u32
§get: Option<unsafe extern "C" fn(conn: *mut spa_dbus_connection) -> *mut c_void>
Get the DBusConnection from a wrapper
Note that the returned handle is closed and unref’d by spa_dbus immediately before emitting the asynchronous “disconnected” event. The caller must either deal with the invalidation, or keep an extra ref on the handle returned.
\param conn the spa_dbus_connection wrapper \return a pointer of type DBusConnection
destroy: Option<unsafe extern "C" fn(conn: *mut spa_dbus_connection)>
Destroy a dbus connection wrapper
\param conn the wrapper to destroy
add_listener: Option<unsafe extern "C" fn(conn: *mut spa_dbus_connection, listener: *mut spa_hook, events: *const spa_dbus_connection_events, data: *mut c_void)>
Add a listener for events
Since version 1
Trait Implementations§
source§impl Clone for spa_dbus_connection
impl Clone for spa_dbus_connection
source§fn clone(&self) -> spa_dbus_connection
fn clone(&self) -> spa_dbus_connection
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_dbus_connection
impl Debug for spa_dbus_connection
source§impl PartialEq for spa_dbus_connection
impl PartialEq for spa_dbus_connection
source§fn eq(&self, other: &spa_dbus_connection) -> bool
fn eq(&self, other: &spa_dbus_connection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for spa_dbus_connection
impl Eq for spa_dbus_connection
impl StructuralPartialEq for spa_dbus_connection
Auto Trait Implementations§
impl RefUnwindSafe for spa_dbus_connection
impl Send for spa_dbus_connection
impl Sync for spa_dbus_connection
impl Unpin for spa_dbus_connection
impl UnwindSafe for spa_dbus_connection
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