Struct std::sys::unix::process::process_inner::ExitStatus
source · pub struct ExitStatus(c_int);
Expand description
Unix exit statuses
Tuple Fields§
§0: c_int
Implementations§
source§impl ExitStatus
impl ExitStatus
pub fn new(status: c_int) -> ExitStatus
fn exited(&self) -> bool
pub fn exit_ok(&self) -> Result<(), ExitStatusError>
pub fn code(&self) -> Option<i32>
pub fn signal(&self) -> Option<i32>
pub fn core_dumped(&self) -> bool
pub fn stopped_signal(&self) -> Option<i32>
pub fn continued(&self) -> bool
pub fn into_raw(&self) -> c_int
Trait Implementations§
source§impl Clone for ExitStatus
impl Clone for ExitStatus
source§fn clone(&self) -> ExitStatus
fn clone(&self) -> ExitStatus
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 ExitStatus
impl Debug for ExitStatus
source§impl Display for ExitStatus
impl Display for ExitStatus
source§impl Eq for ExitStatus
impl Eq for ExitStatus
fn assert_receiver_is_total_eq(&self)
source§impl From<i32> for ExitStatus
impl From<i32> for ExitStatus
Converts a raw c_int
to a type-safe ExitStatus
by wrapping it without copying.
source§fn from(a: c_int) -> ExitStatus
fn from(a: c_int) -> ExitStatus
Converts to this type from the input type.
source§impl Into<ExitStatus> for ExitStatusError
impl Into<ExitStatus> for ExitStatusError
source§fn into(self) -> ExitStatus
fn into(self) -> ExitStatus
Converts this type into the (usually inferred) input type.
source§impl PartialEq<ExitStatus> for ExitStatus
impl PartialEq<ExitStatus> for ExitStatus
source§fn eq(&self, other: &ExitStatus) -> bool
fn eq(&self, other: &ExitStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ExitStatus
impl StructuralEq for ExitStatus
impl StructuralPartialEq for ExitStatus
Auto Trait Implementations§
impl RefUnwindSafe for ExitStatus
impl Send for ExitStatus
impl Sync for ExitStatus
impl Unpin for ExitStatus
impl UnwindSafe for ExitStatus
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