pub struct DoHybrid<T> {
pub task: Option<T>,
pub session: HybrydSession,
pub failures: Failures,
}Fields§
§task: Option<T>§session: HybrydSession§failures: FailuresImplementations§
Trait Implementations§
Source§impl<T> Runtime for DoHybrid<T>where
T: HybrydTask,
impl<T> Runtime for DoHybrid<T>where
T: HybrydTask,
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 DoHybrid<T>where
T: Freeze,
impl<T> !RefUnwindSafe for DoHybrid<T>
impl<T> Send for DoHybrid<T>where
T: Send,
impl<T> Sync for DoHybrid<T>where
T: Sync,
impl<T> Unpin for DoHybrid<T>where
T: Unpin,
impl<T> !UnwindSafe for DoHybrid<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