pub struct NoopCommandExecute;Expand description
NoopCommandExecute is a no-op implementation that always returns an error.
This is used when no command executor is configured.
Trait Implementations§
Source§impl Clone for NoopCommandExecute
impl Clone for NoopCommandExecute
Source§fn clone(&self) -> NoopCommandExecute
fn clone(&self) -> NoopCommandExecute
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 CommandExecute for NoopCommandExecute
impl CommandExecute for NoopCommandExecute
Source§async fn command_execute(
&self,
_program: &str,
_args: &[&str],
) -> Result<CommandOutput>
async fn command_execute( &self, _program: &str, _args: &[&str], ) -> Result<CommandOutput>
Execute a command with the given program and arguments.
Source§impl Debug for NoopCommandExecute
impl Debug for NoopCommandExecute
Source§impl Default for NoopCommandExecute
impl Default for NoopCommandExecute
Source§fn default() -> NoopCommandExecute
fn default() -> NoopCommandExecute
Returns the “default value” for a type. Read more
impl Copy for NoopCommandExecute
Auto Trait Implementations§
impl Freeze for NoopCommandExecute
impl RefUnwindSafe for NoopCommandExecute
impl Send for NoopCommandExecute
impl Sync for NoopCommandExecute
impl Unpin for NoopCommandExecute
impl UnsafeUnpin for NoopCommandExecute
impl UnwindSafe for NoopCommandExecute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CommandExecuteDyn for Twhere
T: CommandExecute + ?Sized,
impl<T> CommandExecuteDyn for Twhere
T: CommandExecute + ?Sized,
Source§fn command_execute_dyn<'a>(
&'a self,
program: &'a str,
args: &'a [&'a str],
) -> Pin<Box<dyn Future<Output = Result<CommandOutput, Error>> + Send + 'a>>
fn command_execute_dyn<'a>( &'a self, program: &'a str, args: &'a [&'a str], ) -> Pin<Box<dyn Future<Output = Result<CommandOutput, Error>> + Send + 'a>>
Dyn version of
CommandExecute::command_execute.