pub struct BashRunInput<'a> {
pub command: String,
pub cwd: String,
pub env: HashMap<String, String>,
pub cancel: Receiver<bool>,
pub on_stdout: Box<dyn FnMut(&[u8]) + Send + 'a>,
pub on_stderr: Box<dyn FnMut(&[u8]) + Send + 'a>,
}Expand description
Everything the runtime needs to launch + wire up a subprocess. The
on_stdout/on_stderr callbacks hand each chunk back to the
orchestrator for head+tail buffering and inactivity-timer reset.
Fields§
§command: String§cwd: String§env: HashMap<String, String>§cancel: Receiver<bool>§on_stdout: Box<dyn FnMut(&[u8]) + Send + 'a>§on_stderr: Box<dyn FnMut(&[u8]) + Send + 'a>Auto Trait Implementations§
impl<'a> Freeze for BashRunInput<'a>
impl<'a> !RefUnwindSafe for BashRunInput<'a>
impl<'a> Send for BashRunInput<'a>
impl<'a> !Sync for BashRunInput<'a>
impl<'a> Unpin for BashRunInput<'a>
impl<'a> UnsafeUnpin for BashRunInput<'a>
impl<'a> !UnwindSafe for BashRunInput<'a>
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