pub struct Unixexec {
path: PathBuf,
arg0: Option<OsString>,
args: Vec<OsString>,
}Expand description
unixexec: D-Bus transport.
https://dbus.freedesktop.org/doc/dbus-specification.html#transports-exec
Fields§
§path: PathBuf§arg0: Option<OsString>§args: Vec<OsString>Implementations§
Source§impl Unixexec
impl Unixexec
Sourcepub fn new(path: PathBuf, arg0: Option<OsString>, args: Vec<OsString>) -> Self
pub fn new(path: PathBuf, arg0: Option<OsString>, args: Vec<OsString>) -> Self
Create a new unixexec transport with the given path and arguments.
pub(super) fn from_options(opts: HashMap<&str, &str>) -> Result<Self>
Sourcepub fn path(&self) -> &PathBuf
pub fn path(&self) -> &PathBuf
Binary to execute.
Path of the binary to execute, either an absolute path or a binary name that is searched for in the default search path of the OS. This corresponds to the first argument of execlp(). This key is mandatory.
Sourcepub fn arg0(&self) -> Option<&OsString>
pub fn arg0(&self) -> Option<&OsString>
The executable argument.
The program name to use when executing the binary. If omitted the same value as specified for path will be used. This corresponds to the second argument of execlp().
pub(super) async fn connect(&self) -> Result<Command>
Trait Implementations§
impl Eq for Unixexec
impl StructuralPartialEq for Unixexec
Auto Trait Implementations§
impl Freeze for Unixexec
impl RefUnwindSafe for Unixexec
impl Send for Unixexec
impl Sync for Unixexec
impl Unpin for Unixexec
impl UnwindSafe for Unixexec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more