pub struct Launcher { /* private fields */ }
Expand description
A D-Bus daemon launcher.
Implementations§
Source§impl Launcher
impl Launcher
Sourcepub fn new(daemon_type: DaemonType) -> Launcher
pub fn new(daemon_type: DaemonType) -> Launcher
Returns a new launcher for given type of D-Bus daemon.
Sourcepub fn bus_type(&mut self, bus_type: BusType) -> &mut Self
pub fn bus_type(&mut self, bus_type: BusType) -> &mut Self
The well-known type of the message bus.
Sourcepub fn listen(&mut self, listen: &str) -> &mut Self
pub fn listen(&mut self, listen: &str) -> &mut Self
Listen on an additional address.
By default daemon will listen on a Unix domain socket in a temporary directory.
§Examples
let mut launcher = dbus_launch::Launcher::daemon();
launcher.listen("tcp:host=localhost");
launcher.listen("unix:abstract=");
Sourcepub fn allow_anonymous(&mut self) -> &mut Self
pub fn allow_anonymous(&mut self) -> &mut Self
Authorize connections using anonymous mechanism.
This option has no practical effect unless the anonymous mechanism is also enabled.
Sourcepub fn auth(&mut self, auth: Auth) -> &mut Self
pub fn auth(&mut self, auth: Auth) -> &mut Self
Allow authorization mechanism.
By default all known mechanisms are allowed.
§Examples
let mut launcher = dbus_launch::Launcher::daemon();
launcher.auth(dbus_launch::Auth::External);
Sourcepub fn service_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Self
pub fn service_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Self
Adds a directory to search for .service files.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Launcher
impl RefUnwindSafe for Launcher
impl Send for Launcher
impl Sync for Launcher
impl Unpin for Launcher
impl UnwindSafe for Launcher
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