pub enum Outcome<T> {
Parent(Result<Parent, Error>),
Child(Result<Child<T>, Error>),
}
Expand description
Daemonization process outcome. Can be matched to check is it a parent process or a child process.
Variants§
Implementations§
Trait Implementations§
source§impl<T: Ord> Ord for Outcome<T>
impl<T: Ord> Ord for Outcome<T>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq<Outcome<T>> for Outcome<T>
impl<T: PartialEq> PartialEq<Outcome<T>> for Outcome<T>
source§impl<T: PartialOrd> PartialOrd<Outcome<T>> for Outcome<T>
impl<T: PartialOrd> PartialOrd<Outcome<T>> for Outcome<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more