pub struct TerminatedPayload {
pub code: Option<i32>,
pub signal: Option<i32>,
}
Expand description
Payload for the CommandEvent::Terminated
command event.
Fields§
§code: Option<i32>
Exit code of the process.
signal: Option<i32>
If the process was terminated by a signal, represents that signal.
Trait Implementations§
source§impl Clone for TerminatedPayload
impl Clone for TerminatedPayload
source§fn clone(&self) -> TerminatedPayload
fn clone(&self) -> TerminatedPayload
Returns a copy 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 TerminatedPayload
impl Debug for TerminatedPayload
Auto Trait Implementations§
impl Freeze for TerminatedPayload
impl RefUnwindSafe for TerminatedPayload
impl Send for TerminatedPayload
impl Sync for TerminatedPayload
impl Unpin for TerminatedPayload
impl UnwindSafe for TerminatedPayload
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
)