Struct zbus::blocking::ConnectionBuilder [−][src]
pub struct ConnectionBuilder<'a>(_);
Expand description
A builder for zbus::blocking::Connection
.
Implementations
Create a builder for connection that will use the given D-Bus bus address.
Create a builder for connection that will use the given unix stream.
The to-be-created connection will a be server using the given GUID.
The to-be-created connection will wait for incoming client authentication handshake and negotiation messages, for peer-to-peer communications after successful creation.
Set the max number of messages to queue.
Since typically you’d want to set this at instantiation time, you can set it through the builder.
Example
let conn = ConnectionBuilder::session()?
.max_queued(30)
.build()?;
assert_eq!(conn.max_queued(), 30);
// Do something useful with `conn`..
Build the connection, consuming the builder.
Errors
Until server-side bus connection is supported, attempting to build such a connection will
result in Error::Unsupported
error.