dbus_server_address_parser/
launchd.rs

1use crate::Guid;
2
3/// This represents a DBus server address with the prefix [`launchd:`].
4///
5/// [`launchd:`]: https://dbus.freedesktop.org/doc/dbus-specification.html#transports-launchd
6#[derive(Debug, Clone, PartialEq, Eq)]
7pub struct Launchd {
8    /// Path of the unix domain socket for the launchd created dbus-daemon.
9    pub env: String,
10    /// The GUID of the Address.
11    pub guid: Option<Guid>,
12}
13
14impl Launchd {
15    pub fn is_connectable(&self) -> bool {
16        true
17    }
18
19    pub fn is_listenable(&self) -> bool {
20        true
21    }
22}