pub fn bus_own_name_on_connection<NameAcquired, NameLost>(
connection: &DBusConnection,
name: &str,
flags: BusNameOwnerFlags,
name_acquired: NameAcquired,
name_lost: NameLost,
) -> OwnerIdwhere
NameAcquired: Fn(DBusConnection, &str) + 'static,
NameLost: Fn(DBusConnection, &str) + 'static,
Expand description
Like bus_own_name()
but takes a DBusConnection
instead
of a BusType
.
§connection
a bus connection
§name
the well-known name to own
§flags
a set of flags with ownership options
§name_acquired_handler
handler to invoke when
@name is acquired, or NULL
to ignore
§name_lost_handler
handler to invoke when @name
is lost, or NULL
to ignore
§Returns
an identifier (never 0) that can be used with
bus_unown_name()
to stop owning the name