Struct dbus::blocking::LocalConnection [−][src]
pub struct LocalConnection { /* fields omitted */ }
Expand description
A connection to D-Bus, thread local + non-async version
Implementations
Create a new connection to the session bus.
Create a new connection to the system-wide bus.
Get the connection’s unique name.
It’s usually something like “:1.54”
Create a convenience struct for easier calling of many methods on the same destination and path.
pub fn request_name<'a, N: Into<BusName<'a>>>(
&self,
name: N,
allow_replacement: bool,
replace_existing: bool,
do_not_queue: bool
) -> Result<RequestNameReply, Error>
[src]
pub fn request_name<'a, N: Into<BusName<'a>>>(
&self,
name: N,
allow_replacement: bool,
replace_existing: bool,
do_not_queue: bool
) -> Result<RequestNameReply, Error>
[src]Request a name on the D-Bus.
For detailed information on the flags and return values, see the libdbus documentation.
pub fn release_name<'a, N: Into<BusName<'a>>>(
&self,
name: N
) -> Result<ReleaseNameReply, Error>
[src]
pub fn release_name<'a, N: Into<BusName<'a>>>(
&self,
name: N
) -> Result<ReleaseNameReply, Error>
[src]Release a previously requested name on the D-Bus.
Adds a new match to the connection, and sets up a callback when this message arrives.
The returned value can be used to remove the match. The match is also removed if the callback returns “false”.
Adds a new match to the connection, without setting up a callback when this message arrives.
Removes a match from the connection, without removing any callbacks.
Removes a previously added match and callback from the connection.
Tries to handle an incoming message if there is one. If there isn’t one, it will wait up to timeout
This method only takes “&self” instead of “&mut self”, but it is a logic error to call it recursively and might lead to panics or deadlocks.
Trait Implementations
Performs the conversion.
impl<S: ReadAll, F: FnMut(S, &LocalConnection, &Message) -> bool + 'static> MakeSignal<Box<dyn FnMut(Message, &LocalConnection) + 'static, Global>, S, LocalConnection> for F
[src]
impl<S: ReadAll, F: FnMut(S, &LocalConnection, &Message) -> bool + 'static> MakeSignal<Box<dyn FnMut(Message, &LocalConnection) + 'static, Global>, S, LocalConnection> for F
[src]Add a callback to be called in case a message matches. Read more
Auto Trait Implementations
impl !RefUnwindSafe for LocalConnection
impl !Send for LocalConnection
impl !Sync for LocalConnection
impl Unpin for LocalConnection
impl !UnwindSafe for LocalConnection