pub struct RunAgent<T: Agent> {
pub agent: Option<T>,
pub context: T::Context,
pub failures: Failures,
}Fields§
§agent: Option<T>§context: T::Context§failures: FailuresImplementations§
Trait Implementations§
Source§impl<A: Agent> InteractiveRuntime for RunAgent<A>
impl<A: Agent> InteractiveRuntime for RunAgent<A>
Source§impl<A: Agent> InteractiveTask<A> for RunAgent<A>
impl<A: Agent> InteractiveTask<A> for RunAgent<A>
Source§impl<T> Runtime for RunAgent<T>where
T: Agent,
impl<T> Runtime for RunAgent<T>where
T: Agent,
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 RunAgent<T>
impl<T> RefUnwindSafe for RunAgent<T>
impl<T> Send for RunAgent<T>
impl<T> Sync for RunAgent<T>
impl<T> Unpin for RunAgent<T>
impl<T> UnwindSafe for RunAgent<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