1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
use crate::Guid;

/// This represents a DBus server address with the prefix [`systemd`].
///
/// [`systemd:`]: https://dbus.freedesktop.org/doc/dbus-specification.html#transports-systemd
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Systemd {
    /// The GUID of the Address.
    pub guid: Option<Guid>,
}

impl Systemd {
    pub fn is_connectable(&self) -> bool {
        false
    }

    pub fn is_listenable(&self) -> bool {
        true
    }
}