Struct ExitCode

pub struct ExitCode(pub(in ::sys::process::unix::common) u8);

Fields

0: u8

Implementations

impl ExitCode

const SUCCESS: ExitCode = _;
const FAILURE: ExitCode = _;
fn as_i32(&self) -> i32

Trait Implementations

impl Clone for ExitCode

fn clone(&self) -> ExitCode

impl Copy for ExitCode

impl Debug for ExitCode

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for ExitCode

fn assert_fields_are_eq(&self)

impl From<u8> for ExitCode

fn from(code: u8) -> Self

impl PartialEq for ExitCode

fn eq(&self, other: &ExitCode) -> bool

impl StructuralPartialEq for ExitCode

impl TrivialClone for ExitCode

Auto Trait Implementations

impl Freeze for ExitCode

impl RefUnwindSafe for ExitCode

impl Send for ExitCode

impl Sync for ExitCode

impl Unpin for ExitCode

impl UnsafeUnpin for ExitCode

impl UnwindSafe for ExitCode

Blanket Implementations

impl<T> Any for ExitCode where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ExitCode where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ExitCode where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for ExitCode where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for ExitCode

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Printable for ExitCode where T: Copy + Debug,

impl<T> SizeHint for ExitCode where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for ExitCode

impl<T> ToOwned for ExitCode where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for ExitCode where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ExitCode 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 ExitCode where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>