pub enum TimeoutResult<T> {
Completed(T),
TimedOut,
}Expand description
Result of a bounded subprocess operation.
Variants§
Completed(T)
Operation completed within the deadline.
TimedOut
Operation exceeded the deadline and the child was killed.
Implementations§
Source§impl<T> TimeoutResult<T>
impl<T> TimeoutResult<T>
pub fn into_option(self) -> Option<T>
pub fn is_timed_out(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TimeoutResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for TimeoutResult<T>where
T: RefUnwindSafe,
impl<T> Send for TimeoutResult<T>where
T: Send,
impl<T> Sync for TimeoutResult<T>where
T: Sync,
impl<T> Unpin for TimeoutResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for TimeoutResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TimeoutResult<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