[−][src]Struct dbus_launch::Launcher
A D-Bus daemon launcher.
Implementations
impl Launcher
[src]
pub fn new(daemon_type: DaemonType) -> Launcher
[src]
Returns a new launcher for given type of D-Bus daemon.
pub fn daemon() -> Launcher
[src]
Returns a new launcher for dbus-daemon.
pub fn broker() -> Launcher
[src]
Returns a new launcher for dbus-broker.
pub fn bus_type(&mut self, bus_type: BusType) -> &mut Self
[src]
The well-known type of the message bus.
pub fn listen(&mut self, listen: &str) -> &mut Self
[src]
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=");
pub fn allow_anonymous(&mut self) -> &mut Self
[src]
Authorize connections using anonymous mechanism.
This option has no practical effect unless the anonymous mechanism is also enabled.
pub fn auth(&mut self, auth: Auth) -> &mut Self
[src]
Allow authorization mechanism.
By default all known mechanisms are allowed.
Examples
let mut launcher = dbus_launch::Launcher::daemon(); launcher.auth(dbus_launch::Auth::External);
pub fn service_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Self
[src]
Adds a directory to search for .service files.
pub fn service<P: AsRef<Path>>(&mut self, name: &str, exec: P) -> &mut Self
[src]
Adds a service file with given name and executable path.
pub fn launch(&self) -> Result<Daemon>
[src]
Starts the dbus-daemon process.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Launcher
impl Send for Launcher
impl Sync for Launcher
impl Unpin for Launcher
impl UnwindSafe for Launcher
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,