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 moreimpl<T: Eq> Eq for Outcome<T>
impl<T> StructuralEq for Outcome<T>
impl<T> StructuralPartialEq for Outcome<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Outcome<T>where T: RefUnwindSafe,
impl<T> Send for Outcome<T>where T: Send,
impl<T> Sync for Outcome<T>where T: Sync,
impl<T> Unpin for Outcome<T>where T: Unpin,
impl<T> UnwindSafe for Outcome<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more