pub struct Invocation {
pub program: PathBuf,
pub args: Vec<String>,
}Expand description
The daemon invocation, built but not yet run.
Separated from running it so a test can assert on the exact argv without a daemon, a port or a temp directory that outlives it. The argv is the contract here — every flag this omits is a default the daemon picks, and a test that only checked the process started would not notice one going missing.
Fields§
§program: PathBufThe choir-node binary that will be executed.
args: Vec<String>Its arguments, in order, not including the program name.
Implementations§
Trait Implementations§
Source§impl Debug for Invocation
impl Debug for Invocation
Source§impl PartialEq for Invocation
impl PartialEq for Invocation
Source§fn eq(&self, other: &Invocation) -> bool
fn eq(&self, other: &Invocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Invocation
impl StructuralPartialEq for Invocation
Auto Trait Implementations§
impl Freeze for Invocation
impl RefUnwindSafe for Invocation
impl Send for Invocation
impl Sync for Invocation
impl Unpin for Invocation
impl UnsafeUnpin for Invocation
impl UnwindSafe for Invocation
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