[][src]Struct mapped_command::OpaqueOsExitStatus

pub struct OpaqueOsExitStatus { /* fields omitted */ }

A platform specific opaque exit status.

An exit status which is not an exit code, e.g. on unix the signal which terminated an process preventing it from exiting with an exit status.

Warning: Besides OpaqueOsExitStatus::target_specific_default() all other methods only exist on some targets but not all. As such using them can lead to code which only compiles on some targets.

Implementations

impl OpaqueOsExitStatus[src]

pub fn target_specific_default() -> Self[src]

Creates a instance of this type.

This is meant for allowing non-platform specific tests which handle the case of a non exit code process exit status.

Platform specific tests likely still are needed as what this type means is platform specific.

This will always create the same default value but it's a target_specific_value and it's picked arbitrary so it's not really appropriately to implement Default. (To make clear why it isn't consider u32 would default to 246 or similar arbitrary value.)

Trait Implementations

impl Clone for OpaqueOsExitStatus[src]

impl Copy for OpaqueOsExitStatus[src]

impl Debug for OpaqueOsExitStatus[src]

impl Display for OpaqueOsExitStatus[src]

impl Eq for OpaqueOsExitStatus[src]

impl From<OpaqueOsExitStatus> for ExitStatus[src]

impl Hash for OpaqueOsExitStatus[src]

impl PartialEq<OpaqueOsExitStatus> for OpaqueOsExitStatus[src]

impl StructuralEq for OpaqueOsExitStatus[src]

impl StructuralPartialEq for OpaqueOsExitStatus[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> ToString for T where
    T: Display + ?Sized
[src]

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.