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§fn command_execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_program: &'life1 str,
_args: &'life2 [&'life3 str],
) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn command_execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_program: &'life1 str,
_args: &'life2 [&'life3 str],
) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
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 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