pub struct OsExecuteResult {
pub success: bool,
pub reason: OsExecuteReason,
pub code: i32,
}Expand description
Result returned by OsExecuteHook, carrying the three values that
C-Lua’s luaL_execresult pushes: (boolean|nil, "exit"|"signal", int).
Fields§
§success: booltrue when the command exited successfully (exit code 0).
reason: OsExecuteReasonHow the process terminated.
code: i32Exit code (for Exit) or signal number (for Signal).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OsExecuteResult
impl RefUnwindSafe for OsExecuteResult
impl Send for OsExecuteResult
impl Sync for OsExecuteResult
impl Unpin for OsExecuteResult
impl UnsafeUnpin for OsExecuteResult
impl UnwindSafe for OsExecuteResult
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