[][src]Enum subprocess::ExitStatus

pub enum ExitStatus {
    Exited(u32),
    Signaled(u8),
    Other(i32),
    Undetermined,
}

Exit status of a process.

Variants

Exited(u32)

The process exited with the specified exit code.

Note that the exit code is limited to a much smaller range on most platforms.

Signaled(u8)

The process exited due to a signal with the specified number.

This variant is never created on Windows, where signals of Unix kind do not exist.

Other(i32)

The process exit status cannot be described by the preceding two variants.

This should not occur in normal operation.

Undetermined

It is known that the process has completed, but its exit status is unavailable.

This should not occur in normal operation, but if possible if for example some foreign code calls waitpid() on the PID of the child process.

Methods

impl ExitStatus[src]

pub fn success(&self) -> bool[src]

True if the exit status of the process is 0.

Trait Implementations

impl Clone for ExitStatus[src]

impl Copy for ExitStatus[src]

impl Debug for ExitStatus[src]

impl Eq for ExitStatus[src]

impl PartialEq<ExitStatus> for ExitStatus[src]

impl StructuralEq for ExitStatus[src]

impl StructuralPartialEq for ExitStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.