pub struct ExecResult {
pub stdout: String,
pub stderr: String,
pub output: String,
pub code: Option<isize>,
pub signal: Option<String>,
}Expand description
The result of code execution returned by Piston.
Fields§
§stdout: StringThe text sent to stdout during execution.
stderr: StringThe text sent to stderr during execution.
output: StringThe text sent to both stdout, and stderr during execution.
code: Option<isize>The optional exit code returned by the process.
signal: Option<String>The optional signal sent to the process. (SIGKILL etc)
Implementations§
Source§impl ExecResult
impl ExecResult
Trait Implementations§
Source§impl Clone for ExecResult
impl Clone for ExecResult
Source§fn clone(&self) -> ExecResult
fn clone(&self) -> ExecResult
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 Debug for ExecResult
impl Debug for ExecResult
Source§impl<'de> Deserialize<'de> for ExecResult
impl<'de> Deserialize<'de> for ExecResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecResult
impl RefUnwindSafe for ExecResult
impl Send for ExecResult
impl Sync for ExecResult
impl Unpin for ExecResult
impl UnwindSafe for ExecResult
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