pub struct RoutineRuntime<R: Routine> {
pub routine: R,
pub context: R::Context,
pub failures: Failures,
}
Fields§
§routine: R
§context: R::Context
§failures: Failures
Implementations§
Trait Implementations§
Source§impl<R: Routine> InteractiveRuntime for RoutineRuntime<R>
impl<R: Routine> InteractiveRuntime for RoutineRuntime<R>
Source§impl<R: Routine> Runtime for RoutineRuntime<R>
impl<R: Routine> Runtime for RoutineRuntime<R>
Source§fn get_interruptor(&mut self) -> Interruptor
fn get_interruptor(&mut self) -> Interruptor
Used by a lifetime tracker of the supervisor to stop it.
It’s the separate type that wraps address made by a runtime.
fn routine<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<R> Freeze for RoutineRuntime<R>
impl<R> RefUnwindSafe for RoutineRuntime<R>
impl<R> Send for RoutineRuntime<R>
impl<R> Sync for RoutineRuntime<R>
impl<R> Unpin for RoutineRuntime<R>
impl<R> UnwindSafe for RoutineRuntime<R>
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