pub struct DelegateApplyOptions {
pub mode: Option<DelegateMode>,
pub timeout_ms: Option<u64>,
pub on_progress: Option<Box<dyn Fn(ApplyProgress) + Send + Sync>>,
pub cmd: Option<Arc<dyn CommandRunner>>,
}Expand description
Options for delegate command execution.
Fields§
§mode: Option<DelegateMode>Whether to print the command or execute it. Defaults to PrintOnly.
timeout_ms: Option<u64>Timeout for command execution in milliseconds.
on_progress: Option<Box<dyn Fn(ApplyProgress) + Send + Sync>>Progress callback.
cmd: Option<Arc<dyn CommandRunner>>Command runner for executing external processes.
Auto Trait Implementations§
impl Freeze for DelegateApplyOptions
impl !RefUnwindSafe for DelegateApplyOptions
impl Send for DelegateApplyOptions
impl Sync for DelegateApplyOptions
impl Unpin for DelegateApplyOptions
impl UnsafeUnpin for DelegateApplyOptions
impl !UnwindSafe for DelegateApplyOptions
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