Module connection

Source
Expand description

Different connection types you will need to talk to the bus

  • ll_conn is the basic send and recive primitives used to build the other connection types
  • dispatch_conn is meant for services that need to dispatch calls to different handlers
  • rpc_conn is meant for clients that make calls to services on the bus

Modules§

dispatch_conn
A connection type that allows dispatching method calls to different handlers.
ll_conn
rpc_conn
The connection stuff you probably want to use. Conn is the lowlevel abstraction RpcConn is the higher level wrapper with convenience functions over the Conn struct.

Enums§

Error
Errors that can occur when using the Conn/RpcConn
Timeout

Functions§

get_session_bus_path
Convenience function that returns the UnixAddr of the session bus according to the env var $DBUS_SESSION_BUS_ADDRESS.
get_system_bus_path
Convenience function that returns a path to the system bus at /run/dbus/systemd_bus_socket