pub enum OsExecuteReason {
Exit,
Signal,
}Expand description
Reason a shell command terminated, returned by OsExecuteHook.
Mirrors the two string literals that C-Lua’s l_inspectstat / luaL_execresult
can produce: "exit" for normal process exit, "signal" for signal termination
(POSIX only).
Variants§
Exit
Process exited with an exit code (WIFEXITED / ExitStatus::code() is Some).
Signal
Process was terminated by a signal (WIFSIGNALED / ExitStatus::signal() is Some).
Trait Implementations§
Source§impl Clone for OsExecuteReason
impl Clone for OsExecuteReason
Source§fn clone(&self) -> OsExecuteReason
fn clone(&self) -> OsExecuteReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OsExecuteReason
impl Debug for OsExecuteReason
impl Copy for OsExecuteReason
Auto Trait Implementations§
impl Freeze for OsExecuteReason
impl RefUnwindSafe for OsExecuteReason
impl Send for OsExecuteReason
impl Sync for OsExecuteReason
impl Unpin for OsExecuteReason
impl UnsafeUnpin for OsExecuteReason
impl UnwindSafe for OsExecuteReason
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