pub struct DebugExecutor {
pub executor: CommandExecutor,
pub debug_config: DebugConfig,
pub retry_policy: Option<RetryPolicy>,
}
Expand description
Enhanced command executor with debugging features
Fields§
§executor: CommandExecutor
Base executor
debug_config: DebugConfig
Debug configuration
retry_policy: Option<RetryPolicy>
Retry policy
Implementations§
Source§impl DebugExecutor
impl DebugExecutor
Sourcepub fn with_retry(self, policy: RetryPolicy) -> Self
pub fn with_retry(self, policy: RetryPolicy) -> Self
Set retry policy
Sourcepub async fn execute_command(
&self,
command_name: &str,
args: Vec<String>,
) -> Result<CommandOutput>
pub async fn execute_command( &self, command_name: &str, args: Vec<String>, ) -> Result<CommandOutput>
Execute a command with debug features
§Errors
Returns an error if the command fails after all retry attempts
Sourcepub fn get_command_log(&self) -> Vec<String>
pub fn get_command_log(&self) -> Vec<String>
Get command history
Trait Implementations§
Source§impl Clone for DebugExecutor
impl Clone for DebugExecutor
Source§fn clone(&self) -> DebugExecutor
fn clone(&self) -> DebugExecutor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DebugExecutor
impl Debug for DebugExecutor
Auto Trait Implementations§
impl Freeze for DebugExecutor
impl !RefUnwindSafe for DebugExecutor
impl Send for DebugExecutor
impl Sync for DebugExecutor
impl Unpin for DebugExecutor
impl !UnwindSafe for DebugExecutor
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