pub struct CommandResult {
pub gid: i32,
pub status: i32,
pub stdout: String,
pub stderr: String,
}Expand description
Represents an error calling exec.
Fields§
§gid: i32§status: i32§stdout: String§stderr: StringImplementations§
source§impl CommandResult
impl CommandResult
pub fn new() -> CommandResult
pub fn from_status(gid: i32, status: i32) -> CommandResult
pub fn error() -> CommandResult
Trait Implementations§
source§impl Clone for CommandResult
impl Clone for CommandResult
source§fn clone(&self) -> CommandResult
fn clone(&self) -> CommandResult
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CommandResult
impl Debug for CommandResult
source§impl Default for CommandResult
impl Default for CommandResult
source§fn default() -> CommandResult
fn default() -> CommandResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandResult
impl RefUnwindSafe for CommandResult
impl Send for CommandResult
impl Sync for CommandResult
impl Unpin for CommandResult
impl UnwindSafe for CommandResult
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)