pub struct NoopClient;Expand description
Ported from NoopClient.
Implementations§
Source§impl NoopClient
impl NoopClient
Trait Implementations§
Source§impl CommandRunner for NoopClient
impl CommandRunner for NoopClient
fn run( &self, _name: &str, _args: &[String], _opts: Option<Options>, ) -> ExecResult
fn read_stdout( &self, _name: &str, _args: &[String], ) -> Result<String, ExecError>
fn run_sudo(&self, _name: &str, _args: &[String]) -> Result<(), ExecError>
fn check(&self, _name: &str, _args: &[String]) -> Result<bool, ExecError>
fn exec_streamed_command( &self, _opts: Option<ExecStreamedOpts>, _name: &str, _args: &[String], ) -> Result<(), ExecError>
fn look_path(&self, _file: &str) -> Result<PathBuf, ExecError>
fn run_in_repository( &self, _repo_dir: &str, _name: &str, _args: &[String], _opts: Option<ExecStreamedOpts>, ) -> Result<(), ExecError>
Source§impl Default for NoopClient
impl Default for NoopClient
Source§fn default() -> NoopClient
fn default() -> NoopClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopClient
impl RefUnwindSafe for NoopClient
impl Send for NoopClient
impl Sync for NoopClient
impl Unpin for NoopClient
impl UnsafeUnpin for NoopClient
impl UnwindSafe for NoopClient
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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