pub struct ShellCommandExecutor { /* private fields */ }Expand description
Executor for shell commands
Implementations§
Source§impl ShellCommandExecutor
impl ShellCommandExecutor
Sourcepub fn with_runner(runner: Arc<dyn ProcessRunner>) -> Self
pub fn with_runner(runner: Arc<dyn ProcessRunner>) -> Self
Create a new shell command executor with custom runner
Trait Implementations§
Source§impl CommandExecutor for ShellCommandExecutor
impl CommandExecutor for ShellCommandExecutor
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
step: &'life1 WorkflowStep,
context: &'life2 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<CommandResult, CommandError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
step: &'life1 WorkflowStep,
context: &'life2 ExecutionContext,
) -> Pin<Box<dyn Future<Output = Result<CommandResult, CommandError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute a command with the given context
Source§fn supports(&self, command_type: &CommandType) -> bool
fn supports(&self, command_type: &CommandType) -> bool
Check if this executor supports the given command type
Auto Trait Implementations§
impl !RefUnwindSafe for ShellCommandExecutor
impl !UnwindSafe for ShellCommandExecutor
impl Freeze for ShellCommandExecutor
impl Send for ShellCommandExecutor
impl Sync for ShellCommandExecutor
impl Unpin for ShellCommandExecutor
impl UnsafeUnpin for ShellCommandExecutor
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more