[−][src]Struct assert_cmd::output::OutputError
Command error.
Generally produced by OutputOkExt.
Examples
use assert_cmd::prelude::*; use std::process::Command; let err = Command::new("a-command") .args(&["--will-fail"]) .unwrap_err();
Implementations
impl OutputError[src]
pub fn new(output: Output) -> Self[src]
pub fn with_cause<E>(cause: E) -> Self where
E: Error + Send + Sync + 'static, [src]
E: Error + Send + Sync + 'static,
For errors that happen in creating a Output.
pub fn set_cmd(self, cmd: String) -> Self[src]
Add the command line for additional context.
pub fn set_stdin(self, stdin: Vec<u8>) -> Self[src]
Add the stdin for additional context.
pub fn as_output(&self) -> Option<&Output>[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for OutputError
impl Send for OutputError
impl Sync for OutputError
impl Unpin for OutputError
impl !UnwindSafe for OutputError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,