dbus_server_address_parser/unixexec.rs
1use crate::Guid;
2
3/// This represents a DBus server address with the prefix [`unixexec:`].
4///
5/// [`unixexec:`]: https://dbus.freedesktop.org/doc/dbus-specification.html#transports-exec
6#[derive(Debug, Clone, PartialEq, Eq)]
7pub struct Unixexec {
8 /// Path of the binary to execute.
9 pub path: String,
10 /// The program name to use when executing the binary. If omitted the same value as specified
11 /// for `path` will be used.
12 pub argv0: Option<String>,
13 /// Arguments to pass to the binary.
14 pub argv: Vec<String>,
15 /// The GUID of the Address.
16 pub guid: Option<Guid>,
17}
18
19impl Unixexec {
20 pub fn is_connectable(&self) -> bool {
21 true
22 }
23
24 pub fn is_listenable(&self) -> bool {
25 false
26 }
27}