pub struct ExecaResult {Show 14 fields
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
pub all: Option<Vec<u8>>,
pub exit_code: Option<i32>,
pub signal: Option<String>,
pub failed: bool,
pub killed: bool,
pub timed_out: bool,
pub is_canceled: bool,
pub is_max_buffer: bool,
pub command: String,
pub escaped_command: String,
pub duration: Duration,
pub cause: Option<String>,
}Expand description
Execa-like result metadata, with byte-preserving output.
Fields§
§stdout: Vec<u8>§stderr: Vec<u8>§all: Option<Vec<u8>>§exit_code: Option<i32>§signal: Option<String>§failed: bool§killed: bool§timed_out: bool§is_canceled: bool§is_max_buffer: bool§command: String§escaped_command: String§duration: Duration§cause: Option<String>Implementations§
Source§impl ExecaResult
impl ExecaResult
pub fn stderr_text(&self) -> String
pub fn stdout_lines(&self) -> Vec<String>
pub fn stderr_lines(&self) -> Vec<String>
Trait Implementations§
Source§impl Clone for ExecaResult
impl Clone for ExecaResult
Source§impl Debug for ExecaResult
impl Debug for ExecaResult
Auto Trait Implementations§
impl Freeze for ExecaResult
impl RefUnwindSafe for ExecaResult
impl Send for ExecaResult
impl Sync for ExecaResult
impl Unpin for ExecaResult
impl UnsafeUnpin for ExecaResult
impl UnwindSafe for ExecaResult
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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