pub struct Timeout<M> { /* private fields */ }Expand description
Allows running another process within the specified timeout.
Trait Implementations§
Source§impl<M> Process for Timeout<M>
impl<M> Process for Timeout<M>
Source§type Item = Option<<M as Process>::Item>
type Item = Option<<M as Process>::Item>
The type of the item that is used within the computation.
Source§fn and_then<U, F>(self, f: F) -> AndThen<Self, U, F>
fn and_then<U, F>(self, f: F) -> AndThen<Self, U, F>
Bind the current computation with its continuation within the resulting computation.
Source§fn map<B, F>(self, f: F) -> Map<Self, B, F>
fn map<B, F>(self, f: F) -> Map<Self, B, F>
Map the current computation using the specified transform.
Source§fn zip<U>(self, other: U) -> Zip<Self, U>
fn zip<U>(self, other: U) -> Zip<Self, U>
Zip the current computation with another one within the resulting computation.
Source§fn finally<U>(self, finalization: U) -> Finally<Self, U>
fn finally<U>(self, finalization: U) -> Finally<Self, U>
Finalize the current computation regardless of canceling it or not.
Source§fn into_boxed(self) -> ProcessBox<Self::Item>
fn into_boxed(self) -> ProcessBox<Self::Item>
Convert into a boxed value.
Auto Trait Implementations§
impl<M> Freeze for Timeout<M>where
M: Freeze,
impl<M> RefUnwindSafe for Timeout<M>where
M: RefUnwindSafe,
impl<M> Send for Timeout<M>where
M: Send,
impl<M> Sync for Timeout<M>where
M: Sync,
impl<M> Unpin for Timeout<M>where
M: Unpin,
impl<M> UnwindSafe for Timeout<M>where
M: 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