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