Struct ExitStatus
pub struct ExitStatus(pub(in ::sys::process::unix::unix) c_int);
Unix exit statuses
Fields
0: c_int
Implementations
impl ExitStatus
fn new(status: c_int) -> ExitStatusfn from_waitid_siginfo(siginfo: siginfo_t) -> ExitStatusfn exited(&self) -> boolfn exit_ok(&self) -> Result<(), ExitStatusError>fn code(&self) -> Option<i32>fn signal(&self) -> Option<i32>fn core_dumped(&self) -> boolfn stopped_signal(&self) -> Option<i32>fn continued(&self) -> boolfn into_raw(&self) -> c_int
Trait Implementations
impl Clone for ExitStatus
fn clone(&self) -> ExitStatus
impl Copy for ExitStatus
impl Debug for ExitStatus
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for ExitStatus
fn default() -> ExitStatus
impl Display for ExitStatus
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ExitStatus
fn assert_fields_are_eq(&self)
impl From<i32> for ExitStatus
fn from(a: c_int) -> ExitStatus
impl PartialEq for ExitStatus
fn eq(&self, other: &ExitStatus) -> bool
impl StructuralPartialEq for ExitStatus
impl TrivialClone for ExitStatus
Auto Trait Implementations
impl Freeze for ExitStatus
impl RefUnwindSafe for ExitStatus
impl Send for ExitStatus
impl Sync for ExitStatus
impl Unpin for ExitStatus
impl UnsafeUnpin for ExitStatus
impl UnwindSafe for ExitStatus
Blanket Implementations
impl<T> Any for ExitStatus
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ExitStatus
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ExitStatus
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ExitStatus
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ExitStatus
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Printable for ExitStatus
where
T: Copy + Debug,
impl<T> SizeHint for ExitStatus
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for ExitStatus
impl<T> ToOwned for ExitStatus
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for ExitStatus
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for ExitStatus
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ExitStatus
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for ExitStatus
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>