[−][src]Struct mimicaw::ExitStatus
Exit status code used as a result of the test process.
Methods
impl ExitStatus
[src]
pub fn success(self) -> bool
[src]
Return whether the status is successful or not.
pub fn code(self) -> i32
[src]
Return the raw exit code.
pub fn exit(self) -> !
[src]
Terminate the test process with the exit code.
This method should not be called before the cleanup of the test process has completed.
pub fn exit_if_failed(self)
[src]
Terminate the test process if the exit code is not successful.
This method should not be called before the cleanup of the test process has completed.
Trait Implementations
impl Clone for ExitStatus
[src]
fn clone(&self) -> ExitStatus
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ExitStatus
[src]
impl Debug for ExitStatus
[src]
impl PartialEq<ExitStatus> for ExitStatus
[src]
fn eq(&self, other: &ExitStatus) -> bool
[src]
fn ne(&self, other: &ExitStatus) -> bool
[src]
impl StructuralPartialEq for ExitStatus
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,