pub struct TaskRuntime<T> {
pub task: T,
pub controller: Controller,
pub failures: Failures,
}Fields§
§task: T§controller: Controller§failures: FailuresImplementations§
Trait Implementations§
Source§impl<T> Runtime for TaskRuntime<T>where
T: Task,
impl<T> Runtime for TaskRuntime<T>where
T: Task,
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<T> Freeze for TaskRuntime<T>where
T: Freeze,
impl<T> !RefUnwindSafe for TaskRuntime<T>
impl<T> Send for TaskRuntime<T>where
T: Send,
impl<T> Sync for TaskRuntime<T>where
T: Sync,
impl<T> Unpin for TaskRuntime<T>where
T: Unpin,
impl<T> !UnwindSafe for TaskRuntime<T>
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